Michael Wang 3 năm trước cách đây
mục cha
commit
65dc2bbe3c

+ 4 - 3
src/features/UserLogin/UserLogin.vue

@@ -408,9 +408,10 @@ onUnmounted(() => $message.destroyAll());
             v-if="allowLoginType.includes('IDENTITY_NUMBER')"
             key="IDENTITY_NUMBER"
             :class="{
-              'active-type': formValue.accountType === 'IDENTITY_NUMBER',
+              'active-type':
+                formValue.accountType === 'STUDENT_IDENTITY_NUMBER',
             }"
-            @click="formValue.accountType = 'IDENTITY_NUMBER'"
+            @click="formValue.accountType = 'STUDENT_IDENTITY_NUMBER'"
           >
             {{ QECSConfig.IDENTITY_NUMBER_LOGIN_ALIAS }}
           </a>
@@ -438,7 +439,7 @@ onUnmounted(() => $message.destroyAll());
               <n-input
                 v-model:value="formValue.password"
                 type="password"
-                @onEnter="loginForuser"
+                @keypress.enter="loginForuser"
               >
                 <template #prefix>
                   <n-icon :component="LockClosed" />

+ 1 - 0
src/features/WelcomePage/WelcomePage.vue

@@ -37,6 +37,7 @@ onUnmounted(() => clearInterval(interval));
   <n-modal
     v-if="privacyPassed && phonePassed"
     :show="true"
+    :closable="false"
     preset="card"
     title="欢迎"
     style="width: 400px"