From e706f60cf8a483e5dc46f87ed1965706bf629610 Mon Sep 17 00:00:00 2001 From: zyh Date: Mon, 13 May 2024 11:05:52 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3459=20fix:=20=E5=A2=9E=E5=8A=A0=E7=8A=B6?= =?UTF-8?q?=E6=80=81=20state=20=3D14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/table/settings/endpointTable.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue index 31fa91e9b..0cc1447e8 100644 --- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue +++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue @@ -326,11 +326,14 @@ export default { }, suspendedStr (status) { // 10进制转为2进制 分别给对应的状态 if (!status || status === 1 || status == 0) { return '' } - const arr = status.toString(2).split('') + let arr = status.toString(2).split('') while (arr.length < 4) { arr.unshift('0') } arr.pop() + if (status == 14) { + arr = [0, 0, 0] + } let str = '' arr.forEach((item, index) => { if (index === 0) {