feat : 调整适配部署阿里云效

This commit is contained in:
翟二远 2026-04-08 09:40:32 +08:00
parent 82f96a12d8
commit 04fc6545dd

View file

@ -7,7 +7,7 @@
async function loadRuntimeConfig() {
await new Promise<void>((resolve, reject) => {
const script = document.createElement('script')
const base = import.meta.env.BASE_URL || '/'
const base = new URL('./', document.baseURI).pathname
script.src = `${base}runtime-config.js`
script.async = false
script.onload = () => resolve()