高敬炎 пре 2 година
родитељ
комит
22e4ec08bf
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      xiaochengxu/pages/mySet/mySet.vue

+ 6 - 3
xiaochengxu/pages/mySet/mySet.vue

@@ -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({