Browse Source

图片识别添加取消按钮

zhujindu 1 year ago
parent
commit
14f8dda3d3
1 changed files with 1 additions and 1 deletions
  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);