From 28cda7be1c94b8063063764eebd563db8f6cbd0b Mon Sep 17 00:00:00 2001 From: skytek_xinliang Date: Mon, 31 Aug 2026 09:26:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20HttpOnly=20Cookie=20=E7=99=BB?= =?UTF-8?q?=E5=85=A5=E7=8B=80=E6=85=8B=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/citizen-frontend/src/main.ts | 9 ++++- app/citizen-frontend/src/pages/profile.vue | 6 ++-- .../src/pages/self-assessment.vue | 11 +++++- app/citizen-frontend/src/router/index.ts | 6 ++-- app/citizen-frontend/src/stores/app.ts | 35 +++++++++++++++++++ 5 files changed, 60 insertions(+), 7 deletions(-) diff --git a/app/citizen-frontend/src/main.ts b/app/citizen-frontend/src/main.ts index 082ecfe..dd7266e 100644 --- a/app/citizen-frontend/src/main.ts +++ b/app/citizen-frontend/src/main.ts @@ -9,6 +9,7 @@ import { createApp } from "vue"; // Plugins import { registerPlugins } from "@/plugins"; +import { useAppStore } from "@/stores/app"; // Components import App from "./App.vue"; @@ -20,4 +21,10 @@ const app = createApp(App); registerPlugins(app); -app.mount("#app"); +async function bootstrap() { + const store = useAppStore(); + await store.initializeAuthentication(); + app.mount("#app"); +} + +void bootstrap(); diff --git a/app/citizen-frontend/src/pages/profile.vue b/app/citizen-frontend/src/pages/profile.vue index d3f4907..d720bd8 100644 --- a/app/citizen-frontend/src/pages/profile.vue +++ b/app/citizen-frontend/src/pages/profile.vue @@ -6,8 +6,8 @@ 個人資料修改 - 更新您的基本資料與緊急聯絡資訊。 + 更新您的基本資料與緊急聯絡資訊。 @@ -59,7 +59,7 @@ icon="mdi-lock-outline" variant="tonal" > - 手機門號不可由個人資料修改 + 手機門號不可自行修改