wuhongyuq 5 년 전
부모
커밋
669141d091
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/views/character/index.vue

+ 4 - 1
src/views/character/index.vue

@@ -31,7 +31,7 @@ export default {
     characterList, //角色列表
   },
   data: () => ({
-    total: 1,
+    total: 0,
     topTitle: '角色管理',
     display: 'bk',
     debtTable: [],
@@ -45,7 +45,10 @@ export default {
 
     async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
       const res = await this.query({ skip, limit, ...info });
+      console.log(res.total);
+
       this.$set(this, `debtTable`, res.data);
+      this.$set(this, `total`, res.total);
     },
     // 添加
     add() {