diff --git a/monitorMobile/pages/login.vue b/monitorMobile/pages/login.vue index e2d66fd..6bdd2e8 100644 --- a/monitorMobile/pages/login.vue +++ b/monitorMobile/pages/login.vue @@ -83,10 +83,12 @@ methods: { async login() { this.$refs.uForm.validate().then(() => { + this.isLoading = true login({ ...this.form, password: smCrypto.doSm2Encrypt(this.form.password) }).then(res => { + this.isLoading = false if (res.code != 200) return let data = res.data this.$store.dispatch('setToken', {