Explorar o código

活动非空判断

xhj %!s(int64=2) %!d(string=hai) anos
pai
achega
e5a8a9b547
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:[]
 				})
 			},
 			// 获取更多活动