fix: 编辑sql数据集,设置参数出错

This commit is contained in:
taojinlong 2023-11-20 11:49:57 +08:00
parent 03b727c4ac
commit 4605b862b4

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'
}
}