浏览代码

首页访问多次

zhengkaixin 3 年之前
父节点
当前提交
fffd432113
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      pages/index/index.vue

+ 3 - 0
pages/index/index.vue

@@ -185,6 +185,9 @@
 					type:this.current,
 					memberId:memberId
 				}).then((res) => {
+					if(this.pageIndex==1){
+						this.list=[]
+					}
 					this.list = [
 							...this.list,
 							...res.data.data