Commit be39cd04 by caoyanzhi

update: 退出跳转到gic的登录页

parent aa327827
......@@ -65,7 +65,7 @@ Vue.axios.interceptors.response.use(
if (window.location.href.indexOf('gic-error') != -1) {
return false;
}
window.location.href = local + '/haoban-3/#/login';
window.location.href = local + '/gic-web/#/login?ishb=1';
}
if (data.data.errorCode == 10 || data.data.errorCode == 7) {
......@@ -77,11 +77,11 @@ Vue.axios.interceptors.response.use(
},
err => {
if (err.response.status == 502) {
window.location.href = local + '/haoban-3/#/login';
window.location.href = local + '/gic-web/#/login?ishb=1';
Message.error({ message: '服务异常⊙﹏⊙∥' });
}
if (err.response.status != 403) {
window.location.href = local + '/haoban-3/#/login';
window.location.href = local + '/gic-web/#/login?ishb=1';
Message.error({ message: '登录失效!' });
}
return Promise.resolve(err);
......
......@@ -18,7 +18,7 @@ export default {
} */
if (response.errorCode != 1) {
if (response.errorCode == 4) {
window.location.href = local + '/haoban-3/#/login';
window.location.href = local + '/gic-web/#/login?ishb=1';
return false;
}
if (response.errorCode == 10) {
......
......@@ -58,7 +58,7 @@ export default {
return;
}
this.$message.success('退出成功');
this.$router.push('/login');
window.location.href = location.origin + '/gic-web/#/login?ishb=1';
})
.finally(() => this.$emit('showLoading', false));
}
......
......@@ -23,11 +23,11 @@ if (window.sessionStorage.getItem('token')) {
store.commit(types.LOGIN, window.sessionStorage.getItem('token'));
}
export const constantRouterMap = [
{
path: '/login',
name: '登录',
component: _import('login', 'index')
},
// {
// path: '/login',
// name: '登录',
// component: _import('login', 'index')
// },
{
path: '/loginMore',
name: '登录',
......
......@@ -15,7 +15,7 @@
<div class="bullshit">
<!-- <div class="bullshit__oops">404</div> -->
<div class="bullshit__headline">{{ message }}</div>
<a href="#/login" class="bullshit__return-home" rel="noopener noreferrer">返回好办登录页</a>
<a href="/gic-web/#/login?ishb=1" class="bullshit__return-home" rel="noopener noreferrer">返回好办登录页</a>
</div>
</div>
</div>
......
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