|
|
|
@ -151,9 +151,8 @@ export default { |
|
|
|
immediate: true, |
|
|
|
immediate: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
mounted() { |
|
|
|
this.getCookie(); |
|
|
|
this.getCookie(); |
|
|
|
// this.handleLogin(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// 与 Qt CEncrypt::DataEncryptMD5 逻辑一致 |
|
|
|
// 与 Qt CEncrypt::DataEncryptMD5 逻辑一致 |
|
|
|
@ -174,15 +173,12 @@ export default { |
|
|
|
password === undefined ? this.loginForm.password : decrypt(password), |
|
|
|
password === undefined ? this.loginForm.password : decrypt(password), |
|
|
|
rememberMe: rememberMe === undefined ? false : Boolean(rememberMe), |
|
|
|
rememberMe: rememberMe === undefined ? false : Boolean(rememberMe), |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (this.loginForm.rememberMe == true) { |
|
|
|
if (this.loginForm.rememberMe) { |
|
|
|
console.log(this.loginForm); |
|
|
|
|
|
|
|
this.handleLogin(); |
|
|
|
this.handleLogin(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleLogin() { |
|
|
|
handleLogin() { |
|
|
|
console.log(this.loginForm,this.$refs.loginFormRef); |
|
|
|
|
|
|
|
this.$refs.loginForm.validate((valid) => { |
|
|
|
this.$refs.loginForm.validate((valid) => { |
|
|
|
console.log(this.loginForm); |
|
|
|
|
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
if (this.loginForm.rememberMe) { |
|
|
|
if (this.loginForm.rememberMe) { |
|
|
|
@ -226,7 +222,6 @@ export default { |
|
|
|
// 登录设置确定逻辑 |
|
|
|
// 登录设置确定逻辑 |
|
|
|
handleSettingsConfirm() { |
|
|
|
handleSettingsConfirm() { |
|
|
|
// 这里可以添加保存地址、端口、协议的逻辑 |
|
|
|
// 这里可以添加保存地址、端口、协议的逻辑 |
|
|
|
console.log("保存设置:", this.settingsForm); |
|
|
|
|
|
|
|
this.showSettingsDialog = false; |
|
|
|
this.showSettingsDialog = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -355,13 +350,12 @@ export default { |
|
|
|
width: 60px; |
|
|
|
width: 60px; |
|
|
|
height: 60px; |
|
|
|
height: 60px; |
|
|
|
line-height: 60px; |
|
|
|
line-height: 60px; |
|
|
|
background-color: #ff9900; /* 橙色圆形图标 */ |
|
|
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
margin: 0 auto 10px; |
|
|
|
margin: 0 auto 10px; |
|
|
|
img { |
|
|
|
img { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
|
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.title { |
|
|
|
.title { |
|
|
|
|