优化: 移除prod白屏临时诊断桩(main.ts/index.html)
This commit is contained in:
@@ -7,10 +7,6 @@
|
|||||||
<title>DevFlow</title>
|
<title>DevFlow</title>
|
||||||
</head>
|
</head>
|
||||||
<body style="background:#0c0e1a">
|
<body style="background:#0c0e1a">
|
||||||
<script>
|
|
||||||
// 启动计时基准:webview 解析 index.html 的时刻
|
|
||||||
window.__APP_T0 = performance.now();
|
|
||||||
</script>
|
|
||||||
<script>
|
<script>
|
||||||
// 在渲染前设置主题,防止白屏闪烁
|
// 在渲染前设置主题,防止白屏闪烁
|
||||||
var t = localStorage.getItem('df-theme') || 'dark';
|
var t = localStorage.getItem('df-theme') || 'dark';
|
||||||
|
|||||||
@@ -6,7 +6,3 @@ import "./styles/global.css";
|
|||||||
import "./styles/ai-md.css";
|
import "./styles/ai-md.css";
|
||||||
|
|
||||||
createApp(App).use(router).use(i18n).mount("#app");
|
createApp(App).use(router).use(i18n).mount("#app");
|
||||||
|
|
||||||
// 启动计时:从 index.html 解析到 Vue 挂载完成
|
|
||||||
const t0 = (window as any).__APP_T0 ?? 0;
|
|
||||||
console.log(`[启动] Vue mount 完成: ${(performance.now() - t0).toFixed(0)}ms`);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user