We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d01876 commit 84c63cbCopy full SHA for 84c63cb
frontend/src/views/system/model/Model.vue
@@ -119,9 +119,11 @@ const duplicateName = async (item: any) => {
119
ElMessage.error(t('embedded.duplicate_name'))
120
return
121
}
122
-
+ const param = {
123
+ ...item,
124
+ }
125
if (!item.id) {
- modelApi.add(item).then(() => {
126
+ modelApi.add(param).then(() => {
127
beforeClose()
128
search()
129
ElMessage({
@@ -132,7 +134,7 @@ const duplicateName = async (item: any) => {
132
134
})
133
135
136
- modelApi.edit(item).then(() => {
137
+ modelApi.edit(param).then(() => {
138
139
140
0 commit comments