chore: fix js fetch error

This commit is contained in:
engigu
2026-03-26 12:04:41 +08:00
parent 44ae521356
commit 926806f890
2 changed files with 2 additions and 4 deletions
+2 -1
View File
@@ -11,12 +11,13 @@ window.addEventListener('vite:preloadError', () => {
})
const BASE_URL = (window as any).__BASE_URL__ || ''
const origin = window.location.origin
createApp(App)
.use(router)
.use(VueMonacoEditorPlugin, {
paths: {
vs: BASE_URL + '/assets/vs'
vs: `${origin}${BASE_URL}/assets/vs`
}
})
.mount('#app')