diff --git a/src/views/perfManage/customTarget/index.vue b/src/views/perfManage/customTarget/index.vue index 7c7e913b..3a627644 100644 --- a/src/views/perfManage/customTarget/index.vue +++ b/src/views/perfManage/customTarget/index.vue @@ -387,8 +387,10 @@ function fnModalOk() { message.error(t('views.perfManage.customTarget.expressionNoIdTip'), 3); return false; } - modalState.from.expression = result; - const from = toRaw(modalState.from); + //modalState.from.expression = result; + //const from = toRaw(modalState.from); + const from = { ...toRaw(modalState.from) }; + from.expression = result; //return false; modalState.confirmLoading = true; const perfTask = from.id ? updateCustom(from) : addCustom(from);