From a8ddcf4b869070ebc8b27a361e6e8fc83e44d4fa Mon Sep 17 00:00:00 2001 From: libao <15050590816@163.com> Date: Wed, 15 May 2024 10:23:33 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.15=20=E5=90=8E=E5=8F=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/Editor/index.vue | 8 ++++---- ruoyi-ui/src/views/login.vue | 10 +++++----- ruoyi-ui/src/views/system/category/index.vue | 6 ++++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/src/components/Editor/index.vue b/ruoyi-ui/src/components/Editor/index.vue index 0357f0d..5e725b6 100644 --- a/ruoyi-ui/src/components/Editor/index.vue +++ b/ruoyi-ui/src/components/Editor/index.vue @@ -141,7 +141,7 @@ export default { this.Quill = null; }, methods: { - + init() { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); @@ -213,7 +213,7 @@ export default { // 获取光标所在位置 let length = quill.getSelection().index; // 插入图片 res.url为服务器返回的图片地址 - quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName); + quill.insertEmbed(length, "image", res.fileName); // 调整光标到最后 quill.setSelection(length + 1); } else { @@ -241,8 +241,8 @@ export default { this.$modal.msgError("上传失败,请重试"); } } - - + + }, handlePreview(file){ var link = document.createElement("a"); //定义一个a标签 diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index f236f8a..0eb20d8 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -55,9 +55,9 @@ - + + + @@ -72,8 +72,8 @@ export default { return { codeUrl: "", loginForm: { - username: "admin", - password: "admin123", + username: "", + password: "", rememberMe: false, code: "", uuid: "" diff --git a/ruoyi-ui/src/views/system/category/index.vue b/ruoyi-ui/src/views/system/category/index.vue index 12aacb9..2663226 100644 --- a/ruoyi-ui/src/views/system/category/index.vue +++ b/ruoyi-ui/src/views/system/category/index.vue @@ -195,8 +195,10 @@ - + + + +