mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-05 08:57:10 +08:00
fix: 修复第三方登录错误
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { type RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router'
|
||||
import { type RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
|
||||
import { useRouteStore } from '@/stores'
|
||||
|
||||
/** 默认布局 */
|
||||
@@ -19,6 +19,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'Login',
|
||||
component: () => import('@/views/login/index.vue'),
|
||||
meta: { hidden: true }
|
||||
},
|
||||
@@ -75,7 +76,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: constantRoutes,
|
||||
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user