Jelajahi Sumber

活动非空判断

xhj 2 tahun lalu
induk
melakukan
e5a8a9b547
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pages/index/index.vue

+ 1 - 1
pages/index/index.vue

@@ -571,7 +571,7 @@
 				req.getRequest('/api/banner', {
 					code: 'index_hot_activity'
 				}, res => {
-					this.hotActivityList = res
+					this.hotActivityList = res?res:[]
 				})
 			},
 			// 获取更多活动