From 7370dfb27a6b3c06626aae9e0201f711f5b0a17a Mon Sep 17 00:00:00 2001 From: yaoxin <1752800946@qq.com> Date: Mon, 26 Feb 2024 15:05:07 +0800 Subject: [PATCH] =?UTF-8?q?day=5F01=E4=BD=9C=E4=B8=9A=E5=89=8D=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageUpload/index.vue | 3 +- src/views/system/book/index.vue | 61 ++++++++++++++++------------ 2 files changed, 37 insertions(+), 27 deletions(-) diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index bc8a76f..b370d00 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -149,7 +149,8 @@ export default { }, // 上传成功回调 handleUploadSuccess(res, file) { - if (res.data.code === 200) { + if (res.code === 200) { + console.log(res) this.uploadList.push({name: res.data.url, url: res.data.url}); this.uploadedSuccessfully(); } else { diff --git a/src/views/system/book/index.vue b/src/views/system/book/index.vue index 767894c..acb2548 100644 --- a/src/views/system/book/index.vue +++ b/src/views/system/book/index.vue @@ -17,20 +17,30 @@ @keyup.enter.native="handleQuery" /> - - + + + + + - - + + + + - + @@ -47,7 +57,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['system:info:add']" + v-hasPermi="['system:book:list']" >新增 @@ -101,9 +111,9 @@ - + @@ -149,16 +159,15 @@ - - - - - - + + + +