feat: 优化存储过程数据集,在切换数据源的时候,如果sql编辑器内容不是初始化内容的时候,不予清空

main
wu.jian2 2 years ago
parent 2c746c7ee3
commit d2eb99ce5f

@ -798,9 +798,13 @@ export default {
for (let i = 0; i < this.sourceList.length; i++) {
if (this.sourceList[i].id === v) {
if (this.sourceList[i].sourceType === 'sqlserver') {
this.dataForm.sqlProcess = 'exec '
if (this.dataForm.sqlProcess === 'call ') {
this.dataForm.sqlProcess = 'exec '
}
} else {
this.dataForm.sqlProcess = 'call '
if (this.dataForm.sqlProcess === 'exec ') {
this.dataForm.sqlProcess = 'call '
}
}
}
}

Loading…
Cancel
Save