Explorar o código

图片识别添加取消按钮

zhujindu hai 1 ano
pai
achega
14f8dda3d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/uploadImgVStore.vue

+ 1 - 1
src/components/uploadImgVStore.vue

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