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() {