Skip to content

Commit

Permalink
optimize: 操作乘车人信息前端添加验证功能
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Apr 10, 2024
1 parent 020f873 commit 763941a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions console-vue/src/views/add-passenger/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ const onSubmit = () => {
`乘车人${query.type === 'edit' ? '修改' : '创建'}成功`
)
router.push('/passenger')
} else {
message.error(res.message)
loading.value = false
}
})
}
Expand All @@ -160,6 +163,9 @@ const onSubmit = () => {
`乘车人${query.type === 'edit' ? '修改' : '创建'}成功`
)
router.push('/passenger')
} else {
message.error(res.message)
loading.value = false
}
})
.catch((error) => console.log(error))
Expand Down

0 comments on commit 763941a

Please sign in to comment.