main
jn517618 2 years ago
parent 3314c88815
commit 07cc682894
  1. BIN
      dist.zip
  2. 11
      src/page/login/userlogin.vue

Binary file not shown.

@ -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 })
}
} }
} }
}; };

Loading…
Cancel
Save