This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
bjquanjiang
/
pinganxiaoyuan
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
登录页完善
master
yxq
2 months ago
parent
a7df35ce1b
commit
61ac603772
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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', {
Write
Preview
Loading…
Cancel
Save