Browse Source

首页访问多次

zhengkaixin 3 years ago
parent
commit
fffd432113
1 changed files with 3 additions and 0 deletions
  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