Procházet zdrojové kódy

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

reghao před 2 roky
rodič
revize
e750df7d62
1 změnil soubory, kde provedl 1 přidání a 6 odebrání
  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)
     },