Преглед изворни кода

loading 状态也不允许 回车键 登录

Michael Wang пре 5 година
родитељ
комит
85e5cedf50
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/features/Login/Login.vue

+ 1 - 1
src/features/Login/Login.vue

@@ -296,7 +296,7 @@ export default {
   methods: {
     ...mapMutations(["updateUser", "updateTimeDifference", "updateQECSConfig"]),
     async login() {
-      if (this.disableLoginBtn) {
+      if (this.disableLoginBtn || this.loginBtnLoading) {
         return;
       }
       this.loginBtnLoading = true;