fix: API数据源加密

This commit is contained in:
taojinlong 2023-01-17 15:51:22 +08:00
parent 3a18e25b86
commit eb74494c5f

View File

@ -1018,6 +1018,7 @@ export default {
delete item.status
})
form.configuration = Base64.encode(JSON.stringify(form.apiConfiguration))
form.apiConfiguration = []
} else {
form.configuration = Base64.encode(JSON.stringify(form.configuration))
}
@ -1156,6 +1157,7 @@ export default {
const data = JSON.parse(JSON.stringify(this.form))
if (data.type === 'api') {
data.configuration = Base64.encode(JSON.stringify(data.apiConfiguration))
data.apiConfiguration = []
} else {
data.configuration = Base64.encode(JSON.stringify(data.configuration))
}