fix: 修复第三方登录错误

This commit is contained in:
2024-06-06 21:27:35 +08:00
parent 98e8060bc7
commit a775b86e2e
3 changed files with 41 additions and 37 deletions

View File

@@ -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 })
})