fix: 修复外部参数多参数时,默认值和传入值不能混用问题 (#17769)

This commit is contained in:
王嘉豪
2026-01-09 16:11:43 +08:00
committed by GitHub
parent 70fb46e568
commit 0039152570

View File

@@ -1117,7 +1117,14 @@ export const dvMainStore = defineStore('dataVisualization', {
targetInfo.defaultValue.length > 0
) {
// 非必填时 用户没有填写参数 但是启用默认值且有预设默认值时
params[key] = JSON.parse(targetInfo.defaultValue)
if (paramsVersion === 'v2') {
params[key] = {
operator: 'in',
value: JSON.parse(targetInfo.defaultValue)
}
} else {
params[key] = JSON.parse(targetInfo.defaultValue)
}
} else if (!userParamsIsNull) {
params[key] = paramsPre[key]
}