Merge pull request #6760 from dataease/pr@dev@fixSql

fix: 编辑sql数据集,设置参数出错
This commit is contained in:
taojinlong
2023-11-19 21:50:58 -06:00
committed by GitHub

View File

@@ -1103,7 +1103,7 @@ export default {
for (let i = 0; i < this.variables.length; i++) {
if (this.variables[i].variableName === name) {
obj = this.variables[i]
if (Object.prototype.hasOwnProperty.call(obj, 'defaultValueScope')) {
if (!Object.prototype.hasOwnProperty.call(obj, 'defaultValueScope')) {
obj.defaultValueScope = 'EDIT'
}
}