From 0d92d93c3437a12bb0e27d68d32fca7de733fbad Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Thu, 11 Jun 2026 16:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5-=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index a80816c..b52b2f6 100644 --- a/src/views/login.vue +++ b/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 {