Browse Source

Update index.tsx

lex 2 years ago
parent
commit
5047202d38
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/views/login/components/register-success/index.tsx

+ 2 - 4
src/views/login/components/register-success/index.tsx

@@ -29,10 +29,8 @@ export default defineComponent({
   },
   async mounted() {
     try {
-      if (state.user.data?.userId) {
-        // 获取用户信息
-        await getUserInfo()
-      }
+      // 获取用户信息
+      await getUserInfo()
     } catch {
       //
     }