Commit 6619c92f authored by 张伯涛's avatar 张伯涛

修改

parent d29df8b9
......@@ -38,7 +38,7 @@ router.beforeEach((to, from, next) => {
} else {
alert('用户无权限')
store.dispatch('FedLogOut').then(() => {
next({ path: '/' })
next({ path: '/login' })
// window.location.href = `${process.env.VUE_APP_LOGIN}?redirect=${to.fullPath}&reLocation=${process.env.VUE_APP_NQ}`
})
}
......@@ -46,7 +46,7 @@ router.beforeEach((to, from, next) => {
} else {
alert('用户无权限')
store.dispatch('FedLogOut').then(() => {
next({ path: '/' })
next({ path: '/login' })
// window.location.href = `${process.env.VUE_APP_LOGIN}?redirect=${to.fullPath}&reLocation=${process.env.VUE_APP_NQ}`
})
}
......@@ -54,7 +54,7 @@ router.beforeEach((to, from, next) => {
.catch(err => {
store.dispatch('FedLogOut').then(() => {
Message.error(err)
next({ path: '/' })
next({ path: '/login' })
// window.location.href = `${process.env.VUE_APP_LOGIN}?redirect=${to.fullPath}&reLocation=${process.env.VUE_APP_NQ}`
})
})
......@@ -78,7 +78,7 @@ router.beforeEach((to, from, next) => {
next()
} else {
// 临时跳转
next({ path: '/' })
next({ path: '/login' })
// next(`http://login.court.com/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
// window.location.href = `${process.env.VUE_APP_LOGIN}?redirect=${to.fullPath}&reLocation=${process.env.VUE_APP_ZT}`
// next()
......
......@@ -33,36 +33,36 @@ import LayoutLogin from '@/layoutLogin'
* 基础页面,所有人可以访问
*/
export const constantRoutes = [
{
path: '/',
redirect: '/login',
hidden: true
},
// {
// path: '/',
// redirect: '/login',
// hidden: true
// },
{
path: '/login',
component: (resolve) => require(['@/views/login/login.vue'], resolve),
hidden: true
},
{
path: '/forgetPwd',
component: LayoutLogin,
redirect: '/forgetPwd/index',
hidden: true,
children: [
{
path: '/forgetPwd/index',
component: (resolve) => require(['@/views/login/forgetPwd'], resolve),
name: '忘记密码',
meta: { title: '忘记密码', icon: 'dashboard', noCache: true, affix: true }
},
{
path: '/forgetPwd/reSet',
component: (resolve) => require(['@/views/login/setPwd'], resolve),
name: '重置密码',
meta: { title: '重置密码', icon: 'dashboard', noCache: true, affix: true }
}
]
},
// {
// path: '/forgetPwd',
// component: LayoutLogin,
// redirect: '/forgetPwd/index',
// hidden: true,
// children: [
// {
// path: '/forgetPwd/index',
// component: (resolve) => require(['@/views/login/forgetPwd'], resolve),
// name: '忘记密码',
// meta: { title: '忘记密码', icon: 'dashboard', noCache: true, affix: true }
// },
// {
// path: '/forgetPwd/reSet',
// component: (resolve) => require(['@/views/login/setPwd'], resolve),
// name: '重置密码',
// meta: { title: '重置密码', icon: 'dashboard', noCache: true, affix: true }
// }
// ]
// },
{
path: '/404',
component: () => import('@/views/404'),
......
......@@ -90,7 +90,7 @@ export default {
updatePassW(params).then(res => {
if (res.code === 200) {
this.$router.push({
path: '/',
path: '/login',
query: this.$route.query
})
}
......
This diff is collapsed.
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