Commit 6cd51081 by lijiabin

【需求 20331】 feat: 加入兜底报错

parent c23750c0
......@@ -38,6 +38,7 @@ export function useUploadImg(imgs: Ref<string> | Ref<string[]>) {
}
} catch (error) {
console.error('上传失败:', error)
ElMessage.error('上传失败,请重试')
} finally {
uploadPercent.value = 0
// 重置input的value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment