소스 검색

Update index.tsx

lex 11 달 전
부모
커밋
3d2a90d15c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/activation-code/activation-register/index.tsx

+ 3 - 1
src/views/activation-code/activation-register/index.tsx

@@ -465,7 +465,9 @@ export default defineComponent({
           const status = await checkLogin();
           if (!status) {
             studentInfo.username = '';
-            forms.activationCode = '';
+            if (!route.query.code) {
+              forms.activationCode = '';
+            }
             phoneChangeEmptyInfo();
           }
         }