fix:prints接口调用失败错误提示

This commit is contained in:
shijing 2025-05-16 09:54:45 +08:00
parent c94ba26840
commit d081da0d7c
1 changed files with 12 additions and 5 deletions

View File

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