Parcourir la source

Update index.tsx

lex il y a 2 ans
Parent
commit
5047202d38
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  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 {
       //
     }