From 6cbf81bf91ddb09b87c1756c4c7d4aa42bb22f4b Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 15 四月 2024 10:33:46 +0800 Subject: [PATCH] 调整接口 --- Source/ProjectWeb/src/views/custom-ui/test.vue | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Source/ProjectWeb/src/views/custom-ui/test.vue b/Source/ProjectWeb/src/views/custom-ui/test.vue index b405076..46ca215 100644 --- a/Source/ProjectWeb/src/views/custom-ui/test.vue +++ b/Source/ProjectWeb/src/views/custom-ui/test.vue @@ -1,20 +1,22 @@ <template> - <div id='quillEditorQiniu'> - <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload begin--> - <el-upload - :accept="'image'" - :action="uploadImgUrl" - :before-upload="beforeEditorUpload" - :headers="headers" - :on-error="uploadEditorError" - :on-success="uploadEditorSuccess" - :show-file-list="false" - class="avatar-uploader"> - </el-upload> - <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload end--> - <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> - </quill-editor> - </div> + <div id='quillEditorQiniu'> + <el-button @click="visible = true">涓婁紶鏂囦欢</el-button> + <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload begin--> + <el-upload + :accept="'image'" + :action="uploadImgUrl" + :before-upload="beforeEditorUpload" + :headers="headers" + :on-error="uploadEditorError" + :on-success="uploadEditorSuccess" + :show-file-list="false" + class="avatar-uploader"> + </el-upload> + <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload end--> + <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> + </quill-editor> + <UploadFiles :visible.sync="visible"></UploadFiles> + </div> </template> <script> @@ -38,6 +40,7 @@ export default { data() { return { + visible: false, headers: { Authorization: "Bearer " + getToken(), }, -- Gitblit v1.9.3