mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 12:22:10 +08:00
fix: 修复外部参数多参数时,默认值和传入值不能混用问题 (#17769)
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user