强化前端格式检测

This commit is contained in:
yml2213
2026-06-08 06:46:47 +08:00
parent 500f511185
commit 04f42e5a96
23 changed files with 17 additions and 64 deletions
@@ -42,7 +42,7 @@ async function handleAvatarFileChange(event: Event) {
if (!file) return
uploadingAvatar.value = true
const toast = showToast({
const loadingToast = showToast({
type: 'loading',
message: '上传中...',
forbidClick: true,
@@ -56,6 +56,7 @@ async function handleAvatarFileChange(event: Event) {
} catch (error) {
showToast({ message: readError(error, '上传失败'), icon: 'cross' })
} finally {
loadingToast.close()
uploadingAvatar.value = false
}
}