浏览代码

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();
           }
         }