优化: 移除prod白屏临时诊断桩(main.ts/index.html)

This commit is contained in:
2026-06-16 21:07:13 +08:00
parent 2069f79198
commit 35b8eac46b
2 changed files with 0 additions and 8 deletions

View File

@@ -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';

View File

@@ -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`);