Ver código fonte

用户主页分页跳转时将 dataList 置空

reghao 2 anos atrás
pai
commit
e750df7d62
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      src/views/user/Home.vue

+ 1 - 6
src/views/user/Home.vue

@@ -226,12 +226,7 @@ export default {
     },
     handleCurrentChange(pageNumber) {
       this.currentPage = pageNumber
-      if (this.activeName === 'video') {
-        this.userVideoListWrapper(this.currentPage, this.userId)
-      } else if (this.activeName === 'status') {
-        this.userStatusListWrapper(this.currentPage, this.userId)
-      }
-
+      this.getData()
       // 回到顶部
       scrollTo(0, 0)
     },