Xiao_123 преди 3 седмици
родител
ревизия
66cb74a9f4
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      layout/components/authModal/necessaryInfo/index.vue
  2. 2 2
      layout/components/authModal/selectUserType/studentInfoForm.vue

+ 2 - 2
layout/components/authModal/necessaryInfo/index.vue

@@ -234,8 +234,8 @@ const submit = async () => {
     await useUserStore.getInfo()
     // await useUserStore.getUserInfo()
 	
-	// 若是扫码登录且账号未注册的,注册后需授权给pc登录
-	handleWeiXinQrCodeAuthorize()
+    // 若是扫码登录且账号未注册的,注册后需授权给pc登录
+    if (wxLoginCode)handleWeiXinQrCodeAuthorize()
   } catch (err) {
     uni.showToast({ title: err?.msg || '保存失败', icon: 'none' })
   }

+ 2 - 2
layout/components/authModal/selectUserType/studentInfoForm.vue

@@ -300,8 +300,8 @@ const submit = async () => {
     uni.showToast({ title: '保存成功', icon: 'none' })
     await useUserStore.getInfo()
 	
-	// 若是扫码登录且账号未注册的,注册后需授权给pc登录
-	handleWeiXinQrCodeAuthorize()
+    // 若是扫码登录且账号未注册的,注册后需授权给pc登录
+    if (wxLoginCode) handleWeiXinQrCodeAuthorize()
   } catch (err) {
     uni.showToast({ title: err?.msg || '保存失败', icon: 'none' })
   }