From a9d2b856e0f6be6475319c2dc36bf405c2f908fc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 22 九月 2026 14:04:52 +0800
Subject: [PATCH] 测试完成
---
src/views/login.vue | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index 10cf9d3..ae3f1a4 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -13,6 +13,7 @@
type="text"
auto-complete="off"
placeholder="璐﹀彿"
+ @blur="handleUsernameBlur"
>
<svg-icon
slot="prefix"
@@ -184,6 +185,17 @@
}
});
},
+ // 杈撳叆瀹岃处鍙峰悗锛屾绱㈠彲閫夋満鏋勬槸鍚﹀寘鍚�滃崡鍗庨檮涓�鈥濓紝鑻ユ湁鍒欒嚜鍔ㄥ~鍏呭瘑鐮�
+ handleUsernameBlur() {
+ if (!this.loginForm.username) return;
+ const hasNanhua = this.options.some((item) => {
+ const label = item.label || "";
+ return label.includes("鍗楀崕") && label.includes("闄勪竴");
+ });
+ if (hasNanhua) {
+ this.loginForm.password = "nhfy@0230";
+ }
+ },
getCookie() {
const username = Cookies.get("username");
const password = Cookies.get("password");
--
Gitblit v1.9.3