Explorar el Código

Update index.tsx

lex hace 2 años
padre
commit
5047202d38
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  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 {
       //
     }