瀏覽代碼

图片识别添加取消按钮

zhujindu 1 年之前
父節點
當前提交
14f8dda3d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);