Parcourir la source

更新登录问题

lex il y a 1 an
Parent
commit
4ef4cef545
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/student/music-group/layout/login.tsx

+ 3 - 1
src/student/music-group/layout/login.tsx

@@ -141,7 +141,7 @@ export default defineComponent({
           // 直接跳转到授权页面
           this.locationReplace(newUrl)
         } else {
-          this.getAppIdAndCode(newUrl)
+          await this.getAppIdAndCode(newUrl)
         }
       }
     },
@@ -160,7 +160,9 @@ export default defineComponent({
         if (!this.orchestraInfo.canSignUp) {
           this.showPopup = true
           this.showPopupMessage = '学校已关闭'
+          return
         }
+
         // let res: any
         const forms: any = {
           username: this.username,