From 1644765ce2fcce7656a77bda94a7ef9f66dda5bd Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Fri, 8 Nov 2024 15:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/perfManage/customTarget/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/perfManage/customTarget/index.vue b/src/views/perfManage/customTarget/index.vue index 64aea8c7..85512ab0 100644 --- a/src/views/perfManage/customTarget/index.vue +++ b/src/views/perfManage/customTarget/index.vue @@ -345,7 +345,7 @@ function fnModalVisibleByEdit(row?: any, id?: any) { } else { fnSelectPerformanceInit(row.neType); modalState.from = Object.assign(modalState.from, row); - modalState.from.expression=modalState.from.exprAlias; + modalState.from.expression = modalState.from.exprAlias; modalState.title = t('views.perfManage.customTarget.editCustom'); modalState.openByEdit = true; } @@ -364,7 +364,7 @@ function fnModalOk() { let result = modalState.from.expression; if (matches) { - matches.forEach((match: any) => { + for (const match of matches) { const valueToReplace = match.slice(1, -1); // 去掉单引号 const found = modalState.neTypPerformance.find( (item: any) => item.label === valueToReplace @@ -378,9 +378,9 @@ function fnModalOk() { }), 3 ); - return false; + return; } - }); + } } else { message.error(t('views.perfManage.customTarget.expressionNoIdTip'), 3); return false; @@ -725,6 +725,7 @@ onMounted(() => {