Browse Source

fix:分页问题处理,切换分页服务端返回总数为-1(离谱)

zhangsiya 1 year ago
parent
commit
c1e48e49a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/bigmember_pc/src/views/portrayal/components/DynamicList.vue

+ 2 - 2
apps/bigmember_pc/src/views/portrayal/components/DynamicList.vue

@@ -882,9 +882,9 @@ export default {
           if (res.data?.count !== res.data.list.length) {
             this.listState.pageSize = res.data.list.length
           }
+          let count = res.data?.count
+          $bus.$emit('sendCount', count)
         }
-        let count = res.data?.count
-        $bus.$emit('sendCount', count)
         try {
           res.data.list = res.data.list.map((item) => {
             let visited