Michael Wang 6 роки тому
батько
коміт
d691cfa11b
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/features/Login/Login.vue

+ 2 - 0
src/features/Login/Login.vue

@@ -157,6 +157,8 @@ export default {
       if (this.disableLoginBtn) {
         return;
       }
+      this.disableLoginBtn = true;
+      setTimeout(() => (this.disableLoginBtn = false), 5000);
       const valid = await this.$refs[name].validate();
       if (valid) {
         console.log("form validated. start login...");