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