Jelajahi Sumber

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

reghao 2 tahun lalu
induk
melakukan
e750df7d62
1 mengubah file dengan 1 tambahan dan 6 penghapusan
  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)
     },