fix:prints接口调用失败错误提示
This commit is contained in:
parent
c94ba26840
commit
d081da0d7c
|
|
@ -93,12 +93,19 @@ axios.interceptors.response.use(
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
if (error.config.url.indexOf('prints')>-1) {
|
||||||
|
ElNotification.error({
|
||||||
|
title: '驱动未打开',
|
||||||
|
message: "请先运行打印驱动,再进行打印操作!"
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
ElNotification.error({
|
ElNotification.error({
|
||||||
title: '请求错误',
|
title: '请求错误',
|
||||||
message: "请求服务器无响应!"
|
message: "请求服务器无响应!"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return Promise.reject(error.response);
|
return Promise.reject(error.response);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue