fix: [发动机数据] 修复发动机型号提示不全问题

This commit is contained in:
yehuangf 2025-12-29 14:42:26 +08:00
parent 765d4ace18
commit 08243e4a37

View File

@ -176,17 +176,25 @@ export default {
...api.ADD_ENGINE_MODEL, ...api.ADD_ENGINE_MODEL,
params: { params: {
...this.formData ...this.formData
} },
disableSuccessMsg: true
} }
this.$request(request) this.$request(request)
.asyncThen((resp) => { .asyncThen((resp) => {
this.$message({
message: '提交成功',
type: 'success'
})
this.closeModal() this.closeModal()
// //
this.$emit('success') this.$emit('success')
}) })
.asyncErrorCatch((err) => { .asyncErrorCatch((err) => {
console.error('添加失败:', err) console.error('添加失败:', err)
this.$message.error(err.message || '添加失败') this.$message({
message: '添加失败',
type: 'error'
})
}) })
.finally(() => { .finally(() => {
this.submitting = false this.submitting = false