优化了一些问题

This commit is contained in:
kate522 committed 2026-08-29 22:03:48 +08:00
1 parent 1d904e6532
commit 780e1eba21
46 files changed
+4074 -3143

No files matched your search

+14 -1
View File
@@ -200,7 +200,20 @@ const {
}
return response
},
submit: (data) => api.saveSchemaPage(resolvedDomain.value, resolvedSection.value, data),
submit: async (data) => {
const payload = { ...data }
const clearSecrets = []
Object.keys(payload).forEach((key) => {
if (payload[key] === '__AKSRT_CLEAR_SECRET__') {
clearSecrets.push(key)
delete payload[key]
}
})
if (clearSecrets.length) payload.__clear_secrets = clearSecrets
const response = await api.saveSchemaPage(resolvedDomain.value, resolvedSection.value, payload)
clearSecrets.forEach((key) => { data[key] = '' })
return response
},
defaults: defaults.value,
onSaved: () => {
message.success('设置已保存')