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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user