From b5e1b3b318956d3bb158d2fdd55bcb2bf6b03753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E5=87=AF?= <371894675@qq.com> Date: Mon, 20 Nov 2023 20:05:09 +0800 Subject: [PATCH] continue upd res until is ok --- src/components/Editor/index.vue | 1 + src/views/system/role/selectUser.vue | 4 ++-- src/views/tool/gen/importTable.vue | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 44c545c..c938927 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -175,6 +175,7 @@ export default { return true; }, handleUploadSuccess(res, file) { + console.log(res) // 如果上传成功 if (res.code == 200) { // 获取富文本组件实例 diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue index b2b072f..8b16f87 100644 --- a/src/views/system/role/selectUser.vue +++ b/src/views/system/role/selectUser.vue @@ -103,8 +103,8 @@ export default { // 查询表数据 getList() { unallocatedUserList(this.queryParams).then(res => { - this.userList = res.rows; - this.total = res.total; + this.userList = res.data.rows; + this.total = res.data.total; }); }, /** 搜索按钮操作 */ diff --git a/src/views/tool/gen/importTable.vue b/src/views/tool/gen/importTable.vue index 3ea9532..092ad24 100644 --- a/src/views/tool/gen/importTable.vue +++ b/src/views/tool/gen/importTable.vue @@ -85,8 +85,8 @@ export default { getList() { listDbTable(this.queryParams).then(res => { if (res.code === 200) { - this.dbTableList = res.rows; - this.total = res.total; + this.dbTableList = res.data.rows; + this.total = res.data.total; } }); },