fix: frontend build error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user