对接统一登录认证
This commit is contained in:
@@ -36,7 +36,15 @@ export const constantRoutes = [
|
||||
component: () => import('@/views/login/index'),
|
||||
hidden: true
|
||||
},
|
||||
|
||||
{
|
||||
path: '/social',
|
||||
component: () => import('@/views/login/social/index.vue'),
|
||||
hidden: true
|
||||
}, {
|
||||
path: '/callback',
|
||||
component: () => import('@/views/login/social/callback.vue'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
component: () => import('@/views/404'),
|
||||
@@ -80,8 +88,8 @@ export const constantRoutes = [
|
||||
]
|
||||
|
||||
const createRouter = () => new Router({
|
||||
// mode: 'history', // require service support
|
||||
mode: 'hash',
|
||||
mode: 'history', // require service support
|
||||
// mode: 'hash',
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRoutes
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user