From 7a0ffb0048adeda9ebfbca1d0b525eb224c173e3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 29 八月 2025 17:00:16 +0800
Subject: [PATCH] 修改组件

---
 src/pages/login.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/pages/login.vue b/src/pages/login.vue
index 485f53a..d970266 100644
--- a/src/pages/login.vue
+++ b/src/pages/login.vue
@@ -101,7 +101,8 @@
 }
 
 function getUserLoginFacotryList() {
-	userLoginFacotryList({userName:loginForm.value.username}).then(res => {
+	if(loginForm.value.username){
+		userLoginFacotryList({userName:loginForm.value.username}).then(res => {
 			// 妫�鏌es.data鏄惁涓烘暟缁�
 			if (res.data && Array.isArray(res.data)) {
 				// 閲嶆柊缁勮鏁版嵁鏍煎紡锛歞eptId鍙樻垚id锛宒eptName鍙樻垚name
@@ -117,6 +118,9 @@
 			modal.msgError('鑾峰彇鍏徃鍒楄〃澶辫触:', error)
 			factoryList.value = []
 		})
+	}else {
+		factoryList.value = []
+	}
 }
 
 async function handleLogin() {

--
Gitblit v1.9.3