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