Skip to content

Commit dab8741

Browse files
committed
fix: bug fix
1 parent da167c0 commit dab8741

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/src/views/system/model/ModelForm.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,20 @@ const supplierChang = (supplier: any) => {
159159
modelForm.api_domain = config.api_domain
160160
modelForm.base_model = ''
161161
}
162+
let curId = +new Date()
162163
const initForm = (item?: any) => {
163164
modelForm.id = ''
164165
modelRef.value.clearValidate()
165166
if (item) {
166167
Object.assign(modelForm, { ...item })
167168
if (item?.config_list?.length) {
168169
advancedSetting.value = item.config_list
170+
advancedSetting.value.forEach((ele: any) => {
171+
if (!ele.id) {
172+
ele.id = curId
173+
curId += 1
174+
}
175+
})
169176
}
170177
}
171178
}

0 commit comments

Comments
 (0)