mirror of https://gitee.com/xiaonuobase/snowy
修改部署在非根路径下时资源的路径问题
parent
578bd2bb4c
commit
478de6388f
|
@ -55,10 +55,10 @@
|
||||||
})
|
})
|
||||||
const contentValue = ref()
|
const contentValue = ref()
|
||||||
const init = 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',
|
language: 'zh_CN',
|
||||||
skin_url: '/tinymce/skins/ui/oxide',
|
skin_url: import.meta.env.BASE_URL + 'tinymce/skins/ui/oxide',
|
||||||
content_css: '/tinymce/skins/content/default/content.css',
|
content_css: import.meta.env.BASE_URL + 'tinymce/skins/content/default/content.css',
|
||||||
menubar: false,
|
menubar: false,
|
||||||
statusbar: true,
|
statusbar: true,
|
||||||
plugins: props.plugins,
|
plugins: props.plugins,
|
||||||
|
|
|
@ -36,7 +36,7 @@ const routes_404 = [
|
||||||
const routes = [...systemRouter, ...whiteListRouters, ...routes_404]
|
const routes = [...systemRouter, ...whiteListRouters, ...routes_404]
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue