perf: SQLBot 嵌入配置校验失败提示文案

This commit is contained in:
fit2cloud-chenyw
2026-05-20 10:20:14 +08:00
committed by fit2cloud-chenyw
parent 0a26a7e557
commit 9b2cf4fb25

View File

@@ -74,14 +74,16 @@ const save = () => {
})
}
const saveClose = () => {
const saveClose = (showMsg: boolean) => {
const param = { ...state.form }
const method = request.post({ url: '/sysParameter/sqlbot', data: param })
showLoading()
method
.then(res => {
if (!res.msg) {
ElMessage.success(t('common.save_success'))
if (showMsg) {
ElMessage.success(t('common.save_success'))
}
emits('saved')
}
closeLoading()
@@ -148,7 +150,7 @@ const validateHandlerOnly = () => {
state.form.valid = false
})
.finally(() => {
saveClose()
saveClose(false)
})
}