Commit de67b54e authored by 刘怀志's avatar 刘怀志

截图组件修改

parent 1af4e1bc
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
title="裁剪图片" title="裁剪图片"
width="700px" width="700px"
class="image-cropper-dialog" class="image-cropper-dialog"
@close="visible = false" @close="onCancel"
> >
<vue-cropper <vue-cropper
ref="imageCropper" ref="imageCropper"
......
...@@ -105,6 +105,10 @@ service.interceptors.response.use(res => { ...@@ -105,6 +105,10 @@ service.interceptors.response.use(res => {
error => { error => {
console.log('err' + error) console.log('err' + error)
let { message } = error; let { message } = error;
if (message == "Network Error" && error.config.url.indexOf('/business/common/uploadMinioPublic') > -1){
// 图片上传的网络问题交由 图片上传组件弹出错误
return Promise.reject(error)
}
if (message == "Network Error") { if (message == "Network Error") {
message = "网络异常"; message = "网络异常";
} else if (message.includes("timeout")) { } else if (message.includes("timeout")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment