fix: frontend build error

This commit is contained in:
shaw
2025-12-18 14:26:55 +08:00
parent 642842c29e
commit 3d05e50335
33 changed files with 545 additions and 269 deletions

View File

@@ -268,7 +268,7 @@ const routes: RouteRecordRaw[] = [
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
scrollBehavior(to, from, savedPosition) {
scrollBehavior(_to, _from, savedPosition) {
// Scroll to saved position when using browser back/forward
if (savedPosition) {
return savedPosition;
@@ -283,7 +283,7 @@ const router = createRouter({
*/
let authInitialized = false;
router.beforeEach((to, from, next) => {
router.beforeEach((to, _from, next) => {
const authStore = useAuthStore();
// Restore auth state from localStorage on first navigation (page refresh)