|
|
|
@ -226,10 +226,10 @@ export default { |
|
|
|
spinner: "el-icon-loading" |
|
|
|
spinner: "el-icon-loading" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { |
|
|
|
this.$store.dispatch("LoginByUsername", this.loginForm).then(() => { |
|
|
|
setStore({ name: 'checked', content: this.checked, type: 'boolean' }) |
|
|
|
setStore({ name: 'checked', content: this.checked }) |
|
|
|
if (this.checked) { |
|
|
|
if (this.checked) { |
|
|
|
setStore({ name: 'username', content: this.loginForm.username, type: 'string' }) |
|
|
|
setStore({ name: 'username', content: this.loginForm.username }) |
|
|
|
setStore({ name: 'password', content: this.loginForm.password, type: 'string' }) |
|
|
|
setStore({ name: 'password', content: this.loginForm.password }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
removeStore({ name: 'username' }) |
|
|
|
removeStore({ name: 'username' }) |
|
|
|
removeStore({ name: 'password' }) |
|
|
|
removeStore({ name: 'password' }) |
|
|
|
@ -276,11 +276,6 @@ export default { |
|
|
|
this.$parent.$refs.login.style.backgroundImage = `url(${data.data.backgroundUrl})`; |
|
|
|
this.$parent.$refs.login.style.backgroundImage = `url(${data.data.backgroundUrl})`; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
onChange(v) { |
|
|
|
|
|
|
|
if (v) { |
|
|
|
|
|
|
|
setStore({ name: 'username', content: this.loginForm.username }) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|