From 478de6388fde132f524d0e0a158f32ff8e705dc3 Mon Sep 17 00:00:00 2001 From: Lijie <1278708252@qq.com> Date: Wed, 28 Aug 2024 15:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E7=BD=B2=E5=9C=A8?= =?UTF-8?q?=E9=9D=9E=E6=A0=B9=E8=B7=AF=E5=BE=84=E4=B8=8B=E6=97=B6=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=9A=84=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/XnEditor/index.vue | 6 +++--- snowy-admin-web/src/router/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snowy-admin-web/src/components/XnEditor/index.vue b/snowy-admin-web/src/components/XnEditor/index.vue index f04a984d..d6f114b9 100644 --- a/snowy-admin-web/src/components/XnEditor/index.vue +++ b/snowy-admin-web/src/components/XnEditor/index.vue @@ -55,10 +55,10 @@ }) const contentValue = ref() const init = ref({ - language_url: '/tinymce/langs/zh_CN.js', + language_url: import.meta.env.BASE_URL + 'tinymce/langs/zh_CN.js', language: 'zh_CN', - skin_url: '/tinymce/skins/ui/oxide', - content_css: '/tinymce/skins/content/default/content.css', + skin_url: import.meta.env.BASE_URL + 'tinymce/skins/ui/oxide', + content_css: import.meta.env.BASE_URL + 'tinymce/skins/content/default/content.css', menubar: false, statusbar: true, plugins: props.plugins, diff --git a/snowy-admin-web/src/router/index.js b/snowy-admin-web/src/router/index.js index 1b6d064d..0e65e5dc 100644 --- a/snowy-admin-web/src/router/index.js +++ b/snowy-admin-web/src/router/index.js @@ -36,7 +36,7 @@ const routes_404 = [ const routes = [...systemRouter, ...whiteListRouters, ...routes_404] const router = createRouter({ - history: createWebHistory(), + history: createWebHistory(import.meta.env.BASE_URL), routes })