From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/utils/healthCheck.js |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/utils/healthCheck.js b/src/utils/healthCheck.js
index ed852c7..93285a7 100644
--- a/src/utils/healthCheck.js
+++ b/src/utils/healthCheck.js
@@ -6,7 +6,7 @@
         healthPath: "/Health",
     },
     {
-        name: "API_INNER",
+        name: "API_OUTER",
         baseUrl: process.env.VUE_APP_BASE_API, // 澶栫綉鍦板潃
         healthPath: "/Health",
     },
@@ -19,7 +19,6 @@
  */
 export const checkServiceHealth = async (service) => {
     const { baseUrl, healthPath } = service;
-    console.log(baseUrl)
     if (!baseUrl) return null;
     return new Promise(async (resolve, reject) => {
         try {
@@ -54,10 +53,8 @@
     const healthCheckPromises = serviceList.map((item) => {
         return checkServiceHealth(item)
     });
-    console.log(healthCheckPromises)
-    const healthResult = await Promise.race(healthCheckPromises); // 绔為�熸ā寮忥紝妫�娴嬪埌鍋ュ悍鐨勯摼鎺ュ氨绔嬪埢杩斿洖
-    console.log(healthResult)
-    // 绛涢�夊彲鐢ㄧ殑 baseUrl锛堝彇绗竴涓湁鏁堝湴鍧�锛�
+    const healthResult = await Promise.any(healthCheckPromises); // 妫�娴嬪埌鍋ュ悍鐨勯摼鎺ュ氨绔嬪埢杩斿洖
+    // 绛涢�夊彲鐢ㄧ殑 baseUrl
     const availableBaseUrl = healthResult
 
     if (availableBaseUrl) {

--
Gitblit v1.9.1