mounted() {
let account = localStorage.getItem('account');
let pwd = localStorage.getItem('pwd');
if (account){
this.account = account;
this.pwd = pwd;
this.checked = true
}
},
methods: {
login() {
if (this.checked == true) {
localStorage.setItem('account', this.account);
localStorage.setItem('pwd', this.pwd);
}
}
}