提交 3d02ede5 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc---增加出现错误是否跳转到错误页面判断

上级 6b399121
......@@ -56,9 +56,13 @@ export class Interceptors {
this.doNoLogin(_data.data);
}
if (res.status === 404) {
this.router.push({ path: '/404' });
if(Environment.isGoErrorPage){
this.router.push({ path: '/404' });
}
} else if (res.status === 500) {
this.router.push({ path: '/500' });
if(Environment.isGoErrorPage){
this.router.push({ path: '/500' });
}
}
return Promise.reject(res);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册