feat: 更新组件声明,添加缺失的Ionic组件支持,优化应用初始化逻辑

This commit is contained in:
2025-12-22 06:04:18 +07:00
parent e9488a0234
commit 7a347c0ad6
3 changed files with 31 additions and 3 deletions

View File

@@ -8,10 +8,12 @@ const { initializeWallet } = useWalletStore();
const { updateProfile } = useUserStore();
onMounted(() => {
if (!isAuthenticated.value)
return;
updateProfile();
initializeWallet();
CapacitorApp.addListener("appStateChange", async ({ isActive }) => {
if (isActive && isAuthenticated.value) {
if (isActive) {
await userStore.updateProfile();
}
});

View File

@@ -48,10 +48,10 @@ authClient.getSession().then((session) => {
const app = createApp(App)
.use(IonicVue)
.use(uiComponents)
.use(pinia)
.use(router)
.use(i18n)
.use(uiComponents);
.use(i18n);
router.isReady().then(() => {
app.mount("#app");