From aa64e8ed8eb4badc634dc9f4617a0f1261c66b19 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 10 Aug 2020 15:26:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=EF=BC=9A=20=E4=BF=AE=E6=94=B9project?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E6=8A=BD=E6=88=90=E5=85=AC=E5=85=B1=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=90=8E=EF=BC=8C=E9=83=A8=E5=88=86=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/js/tools.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js index b03f43159..23c7b18a9 100644 --- a/nezha-fronted/src/components/common/js/tools.js +++ b/nezha-fronted/src/components/common/js/tools.js @@ -527,8 +527,13 @@ export const tableSet = { case 'alertName': case 'threshold': case 'idc': - case 'state': if(from === 'project' || from === 'endpointTab' || from === 'operationlog'){return false} return'custom'; + case 'state': + if(from === 'project' || from === 'endpointTab' || from === 'operationlog'){ + return false + }else{ + return'custom' + } default : return false; } },