修改部署在非根路径下时资源的路径问题

pull/233/head
Lijie 2024-08-28 15:48:39 +08:00 committed by 小诺
parent 578bd2bb4c
commit 478de6388f
2 changed files with 4 additions and 4 deletions

View File

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

View File

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