feat: 更新组件声明,添加缺失的Ionic组件支持,优化应用初始化逻辑
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user