fix: 优化场景联动指标值选择参数处理
This commit is contained in:
parent
6b8d56654c
commit
0ffe81d805
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue