From 2c1924d7262a9bf06da30d7da68507b77f3119a0 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 8 Aug 2025 23:39:02 +0000 Subject: [PATCH] =?UTF-8?q?update=20web/src/bootstrap.ts.=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D:=E7=B1=BB=E5=9E=8B"{}"=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=B5=8B=E7=BB=99=E7=B1=BB=E5=9E=8B"string?= =?UTF-8?q?=20|=20number"=E7=9A=84=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Neil --- web/src/bootstrap.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/bootstrap.ts b/web/src/bootstrap.ts index 7e12801..1032db8 100644 --- a/web/src/bootstrap.ts +++ b/web/src/bootstrap.ts @@ -61,8 +61,7 @@ async function bootstrap(namespace: string) { watchEffect(() => { if (preferences.app.dynamicTitle) { const routeTitle = router.currentRoute.value.meta?.title; - const pageTitle = - (routeTitle ? `${$t(routeTitle)} - ` : '') + preferences.app.name; + const pageTitle = (routeTitle ? `${$t(String(routeTitle))} - ` : '') + preferences.app.name; useTitle(pageTitle); } }); -- Gitee