mirror of
https://github.com/dataease/dataease.git
synced 2026-06-10 14:17:06 +08:00
perf: SQLBot 嵌入配置校验失败提示文案
This commit is contained in:
committed by
fit2cloud-chenyw
parent
0a26a7e557
commit
9b2cf4fb25
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user