mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Model Validation Failed
This commit is contained in:
@@ -119,9 +119,11 @@ const duplicateName = async (item: any) => {
|
||||
ElMessage.error(t('embedded.duplicate_name'))
|
||||
return
|
||||
}
|
||||
|
||||
const param = {
|
||||
...item,
|
||||
}
|
||||
if (!item.id) {
|
||||
modelApi.add(item).then(() => {
|
||||
modelApi.add(param).then(() => {
|
||||
beforeClose()
|
||||
search()
|
||||
ElMessage({
|
||||
@@ -132,7 +134,7 @@ const duplicateName = async (item: any) => {
|
||||
})
|
||||
return
|
||||
}
|
||||
modelApi.edit(item).then(() => {
|
||||
modelApi.edit(param).then(() => {
|
||||
beforeClose()
|
||||
search()
|
||||
ElMessage({
|
||||
|
||||
Reference in New Issue
Block a user