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 })