Browse Source

登录页完善

master
yxq 2 months ago
parent
commit
61ac603772
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      monitorMobile/pages/login.vue

+ 2
- 0
monitorMobile/pages/login.vue View File

@@ -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', {


Loading…
Cancel
Save