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