From 4fabfe4dbd2eb28d07a4350597d314958cc1c281 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期四, 09 十月 2025 11:16:43 +0800 Subject: [PATCH] 优化 --- admin/src/components/common/RichEditor.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/src/components/common/RichEditor.vue b/admin/src/components/common/RichEditor.vue index 7c05cb1..ddbe604 100644 --- a/admin/src/components/common/RichEditor.vue +++ b/admin/src/components/common/RichEditor.vue @@ -17,7 +17,7 @@ /> </div> </template> - + <script> import { Editor, Toolbar } from '@wangeditor/editor-for-vue' export default { @@ -111,7 +111,7 @@ uploadImage: { // server: '/api/upload', name: 'file', - server: process.env.VUE_APP_API_PREFIX + '/public/uploadPicture', + server: process.env.VUE_APP_API_PREFIX + '/public/uploadLocal', meta: { folder: 'shop' }, @@ -127,7 +127,7 @@ console.log(`${file.name} 涓婁紶鍑洪敊`, err, res) }, }, - + } }, mode: 'default', // or 'simple' @@ -143,7 +143,7 @@ this.editor = Object.seal(editor) }, onChange (editor) { - console.log(this.html); + // console.log(this.html); // debugger if (!this.html||this.content.content==this.html) { return @@ -151,8 +151,8 @@ this.$emit('edit', this.html) }, }, - + } </script> -<style src="@wangeditor/editor/dist/css/style.css"></style> \ No newline at end of file +<style src="@wangeditor/editor/dist/css/style.css"></style> -- Gitblit v1.9.3