refactor: 优化用户认证逻辑,移除未使用的注销功能和用户信息展示

This commit is contained in:
2025-12-21 01:13:55 +07:00
parent a4034b6b78
commit b957eb7cc2
2 changed files with 7 additions and 21 deletions

View File

@@ -3,9 +3,12 @@ export function beforeApp() {
const { initializeWallet } = useWalletStore();
return new Promise<void>((resolve) => {
useAuth().then(() => {
updateProfile();
initializeWallet();
useAuth().then((session) => {
if (session) {
updateProfile();
initializeWallet();
}
resolve();
});
});