|
|
|
@ -914,7 +914,9 @@ export default {
@@ -914,7 +914,9 @@ export default {
|
|
|
|
|
activeObj: { |
|
|
|
|
handler () { |
|
|
|
|
if (this.activeObj.sql && this.isSql) { |
|
|
|
|
let mode = JSON.parse(crypto.decrypt(this.activeObj.sql)); |
|
|
|
|
// todo 借助spring网关处理解密待重写 |
|
|
|
|
// let mode = JSON.parse(crypto.decrypt(this.activeObj.sql)); |
|
|
|
|
let mode = this.activeObj.sql; |
|
|
|
|
this.db = mode.id; |
|
|
|
|
this.sql = mode.sql; |
|
|
|
|
} else { |
|
|
|
@ -1028,10 +1030,15 @@ export default {
@@ -1028,10 +1030,15 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
handleRes (tip = true) { |
|
|
|
|
if (this.isSql) { |
|
|
|
|
this.activeObj.sql = crypto.encrypt(JSON.stringify({ |
|
|
|
|
// todo 借助spring网关处理解密待重写 |
|
|
|
|
// this.activeObj.sql = crypto.encrypt(JSON.stringify({ |
|
|
|
|
// id: this.db, |
|
|
|
|
// sql: this.sql |
|
|
|
|
// })) |
|
|
|
|
this.activeObj.sql = { |
|
|
|
|
id: this.db, |
|
|
|
|
sql: this.sql |
|
|
|
|
})) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.handleRefresh().then((res = {}) => { |
|
|
|
|
if (!this.validatenull(res)) { |
|
|
|
|