完善表单赋值机制

This commit is contained in:
lai
2024-12-13 16:04:21 +08:00
parent a6bab3fa0b
commit 4b1058cff3

View File

@@ -387,8 +387,10 @@ function fnModalOk() {
message.error(t('views.perfManage.customTarget.expressionNoIdTip'), 3); message.error(t('views.perfManage.customTarget.expressionNoIdTip'), 3);
return false; return false;
} }
modalState.from.expression = result; //modalState.from.expression = result;
const from = toRaw(modalState.from); //const from = toRaw(modalState.from);
const from = { ...toRaw(modalState.from) };
from.expression = result;
//return false; //return false;
modalState.confirmLoading = true; modalState.confirmLoading = true;
const perfTask = from.id ? updateCustom(from) : addCustom(from); const perfTask = from.id ? updateCustom(from) : addCustom(from);