登录页-功能优化

main
ysn 4 days ago
parent 5c2e8f3f5a
commit 0d92d93c34
  1. 12
      src/views/login.vue

@ -151,9 +151,8 @@ export default {
immediate: true,
},
},
created() {
mounted() {
this.getCookie();
// this.handleLogin();
},
methods: {
// Qt CEncrypt::DataEncryptMD5
@ -174,15 +173,12 @@ export default {
password === undefined ? this.loginForm.password : decrypt(password),
rememberMe: rememberMe === undefined ? false : Boolean(rememberMe),
};
if (this.loginForm.rememberMe == true) {
console.log(this.loginForm);
if (this.loginForm.rememberMe) {
this.handleLogin();
}
},
handleLogin() {
console.log(this.loginForm,this.$refs.loginFormRef);
this.$refs.loginForm.validate((valid) => {
console.log(this.loginForm);
if (valid) {
this.loading = true;
if (this.loginForm.rememberMe) {
@ -226,7 +222,6 @@ export default {
//
handleSettingsConfirm() {
//
console.log("保存设置:", this.settingsForm);
this.showSettingsDialog = false;
},
},
@ -355,13 +350,12 @@ export default {
width: 60px;
height: 60px;
line-height: 60px;
background-color: #ff9900; /* 橙色圆形图标 */
border-radius: 50%;
color: #fff;
margin: 0 auto 10px;
img {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.title {

Loading…
Cancel
Save