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

修改

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