wuhongyuq 5 years ago
parent
commit
669141d091
1 changed files with 4 additions and 1 deletions
  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() {