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 @@ - - - - - - + + + +