fix: 优化场景联动指标值选择参数处理

This commit is contained in:
xieyonghong 2023-04-03 10:13:56 +08:00
parent 6b8d56654c
commit 0ffe81d805
1 changed files with 2 additions and 2 deletions

View File

@ -315,13 +315,13 @@ const termsTypeSelect = (e: { key: string, name: string }) => {
}
const valueSelect = (v: any, label: string, labelObj: Record<number, any>, option: any) => {
if (isMetric.value) {
if (paramsValue.value?.source === 'metric') {
paramsValue.metric = option?.id
}
const newValues = { ...paramsValue }
if (!isMetric.value) {
if (paramsValue.value?.source !== 'metric') {
delete newValues.metric
}