소스 검색

图片识别添加取消按钮

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);