@@ -111,9 +111,12 @@
uni.hideLoading()
}).then(res => {
this.cardList = [res.data.items]
- this.cardChange({
- value: this.cardList[[0]]
- })
+ if(res.data.items.length>0){
+ this.cardChange({
+ value: this.cardList[[0]]
+ })
+ }
+
})
} else {
uni.switchTab({