This commit is contained in:
2025-07-25 16:18:33 +08:00
parent c09cbc3f01
commit a4c6140ed5
50 changed files with 2249 additions and 1599 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ const routes: RouteRecordRaw[] = [
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
scrollBehavior(to, from, savedPosition) {
scrollBehavior(_to, _from, savedPosition) {
if (savedPosition) {
return savedPosition
} else {
@@ -142,7 +142,7 @@ const router = createRouter({
})
// 路由守卫
router.beforeEach(async (to, from, next) => {
router.beforeEach(async (to, _from, next) => {
// 设置页面标题
if (to.meta.title) {
document.title = to.meta.title as string