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
commit e0bea05f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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