11
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-05 13:58:56 +08:00
parent e467fcc2cf
commit fdd80c6cd1
6 changed files with 86 additions and 28 deletions

View File

@@ -124,8 +124,8 @@ export default defineConfig({
* @description 配置 <head> 中额外的 script
*/
headScripts: [
// 解决首次加载时白屏的问题
{ src: '/shihezi/scripts/loading.js', async: true },
// 同步执行,在 umi 主包解析前注入 #root 占位,避免首屏纯白
{ src: '/shihezi/scripts/loading.js' },
],
//================ pro 插件配置 =================
presets: ['umi-presets-pro'],