src/views/model/mpk/project/ProjectForm.vue
@@ -56,6 +56,7 @@ id: undefined, projectName: undefined, projectCode: undefined, models: undefined, }) @@ -106,9 +107,11 @@ const data = { ...formData.value } data.models = data.models.map(e => { return {id: e} }) if (data.models && data.models.length > 0) { data.models = data.models.map(e => { return {id: e} }) } if (formType.value === 'create') { await ProjectApi.createProject(data) message.success(t('common.createSuccess'))