@@ -98,7 +98,14 @@
}
})
console.log(res)
- this.imglists = [...this.imglists,...res.data]
+ this.imglists = [...this.imglists, ...res.data]
+ if(this.imglists.length == 0) {
+ uni.showToast({
+ title: '数据为空',
+ duration: 2000,
+ icon:'none'
+ });
+ }
},
top() {
uni.pageScrollTo({