@@ -199,7 +199,7 @@ export default {
that.$toast('上传失败!');
}
})
- .catch(() => {
+ .catch((error) => {
if (error.message === 'canceled') {
this.$toast('取消上传');
console.log('请求被取消:', error.message);