xiaochan hace 1 año
padre
commit
5c3a785940
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/system/JumpRedirect.vue

+ 1 - 1
src/views/system/JumpRedirect.vue

@@ -70,8 +70,8 @@ const errorMsg = ref('')
 
 async function loginFunc() {
   try {
-    localStorage.clear()
     const userInfo = await simpleLogin(info.code)
+    localStorage.clear()
     userStore.setUserInfo(userInfo)
   } catch (e) {
     console.error(e)