From e5966e298af1a375ddeb439d4b1768f48e8fee50 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 11 四月 2024 11:24:25 +0800 Subject: [PATCH] 上传文件组件编写 --- Source/ProjectWeb/src/views/custom-ui/test.vue | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Source/ProjectWeb/src/views/custom-ui/test.vue b/Source/ProjectWeb/src/views/custom-ui/test.vue index b405076..927ace7 100644 --- a/Source/ProjectWeb/src/views/custom-ui/test.vue +++ b/Source/ProjectWeb/src/views/custom-ui/test.vue @@ -1,5 +1,6 @@ <template> <div id='quillEditorQiniu'> + <el-button @click="visible = true">涓婁紶鏂囦欢</el-button> <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload begin--> <el-upload :accept="'image'" @@ -14,6 +15,7 @@ <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload end--> <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> </quill-editor> + <UploadFiles :visible.sync="visible"></UploadFiles> </div> </template> @@ -38,6 +40,7 @@ export default { data() { return { + visible:false, headers: { Authorization: "Bearer " + getToken(), }, -- Gitblit v1.9.3