refactor: 优化用户认证逻辑,移除未使用的注销功能和用户信息展示
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user