Explorar el Código

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

reghao hace 2 años
padre
commit
e750df7d62
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  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)
     },