From 7d84062e2c85e66aa26f2da34bca0566c0166062 Mon Sep 17 00:00:00 2001 From: Soybean Date: Tue, 24 Jun 2025 21:31:17 +0800 Subject: [PATCH] fix(app): replace console.error with window.console.error for consistency --- src/plugins/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/app.ts b/src/plugins/app.ts index 4943341f..5213c0fe 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -95,7 +95,6 @@ async function getHtmlBuildTime(): Promise { const res = await fetch(`${baseUrl}index.html?time=${Date.now()}`); if (!res.ok) { - console.error('getHtmlBuildTime error:', res.status, res.statusText); return null; } @@ -103,7 +102,7 @@ async function getHtmlBuildTime(): Promise { const match = html.match(//); return match?.[1] || null; } catch (error) { - console.error('getHtmlBuildTime error:', error); + window.console.error('getHtmlBuildTime error:', error); return null; } }