feat:优化用户详情界面,增加 loading 效果
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/** 编辑用户 */
|
||||
|
||||
Reference in New Issue
Block a user