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" > - 手機門號不可由個人資料修改 + 手機門號不可自行修改