From 47ae02c571dc4085839e4cf494484c339e254a40 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 25 Jun 2025 11:50:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Windows=2010=20or=20Windows=20Serve?= =?UTF-8?q?r=202016=20=E5=A4=AA=E9=95=BF=E4=BA=86=20=E5=88=86=E5=89=B2?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_core/profile/components/online-device.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/_core/profile/components/online-device.vue b/apps/web-antd/src/views/_core/profile/components/online-device.vue index c8efa1d8..b299cb4f 100644 --- a/apps/web-antd/src/views/_core/profile/components/online-device.vue +++ b/apps/web-antd/src/views/_core/profile/components/online-device.vue @@ -30,7 +30,18 @@ const loading = shallowRef(false); async function loadData() { loading.value = true; const resp = await onlineDeviceList(); - list.value = resp.rows; + list.value = resp.rows.map((item) => { + // Windows 10 or Windows Server 2016 太长了 分割一下 + let value = item.os; + if (value) { + const split = value.split(' or '); + if (split.length === 2) { + value = split[0]!; + } + item.os = value; + } + return item; + }); loading.value = false; } onMounted(loadData);