From f9775f4a57bc03e62703f39df0e79cf4cda905ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B3=BD-huangze-=E5=A4=A9=E6=B4=A5=E6=98=93?= =?UTF-8?q?=E5=95=86=E6=95=B0=E6=99=BA?= Date: Thu, 5 Jun 2025 16:01:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E9=A1=B5=E9=9D=A2=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=8F=96=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index b8a2a9b..b544c69 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,6 +36,8 @@ const routerCanGoBack = () => { return typeof position === 'number' && position > 0; }; router.beforeEach((to, from, next) => { + if (to.meta?.title) document.title = to.meta.title as string; + if (to.query.digitalYiliToken) { utils.setSessionStorage('xToken', to.query.digitalYiliToken); } @@ -52,5 +54,5 @@ router.beforeEach((to, from, next) => { }); app.use(createPinia()); app.use(router); -app.use(sensorsData()) +app.use(sensorsData()); app.mount('#app');