feat: optimize model editing

- close dialog after delete or rename
- keep editing if model update fails
- show more error message
This commit is contained in:
hayden
2024-11-05 17:02:10 +08:00
parent 8bfe601588
commit 0a8c532506
2 changed files with 19 additions and 7 deletions

View File

@@ -72,8 +72,8 @@ const handleCancel = () => {
}
const handleSave = async (data: BaseModel) => {
editable.value = false
await update(props.model, data)
editable.value = false
}
const handleDelete = async () => {