feat:优化用户详情界面,增加 loading 效果

This commit is contained in:
YunaiV
2025-12-15 11:09:50 +08:00
parent 68afe93d17
commit ce3cc228e5

View File

@@ -125,7 +125,12 @@ async function getDetail() {
if (!props.id) {
return
}
formData.value = await getUser(Number(props.id))
try {
toast.loading('加载中...')
formData.value = await getUser(Number(props.id))
} finally {
toast.close()
}
}
/** 编辑用户 */