게시물 목록 페이지 전환 로딩 수정

This commit is contained in:
2026-07-24 16:08:09 +09:00
parent b38eb234d8
commit 2d40fc0574
8 changed files with 66 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ import {
consumePendingScrollRestore,
scrollDocumentTo,
scrollDocumentToTop,
shouldStartSiteRouteVeilNavigation,
shouldUseSiteRouteVeil
} from '../lib/site-route-transition.js'
@@ -132,11 +133,7 @@ export default defineNuxtPlugin((nuxtApp) => {
document.addEventListener('click', handleInternalLinkCapture, true)
router.beforeEach((to, from) => {
if (to.fullPath === from.fullPath) {
return
}
if (!shouldUseSiteRouteVeil(to.path) && !shouldUseSiteRouteVeil(from.path)) {
if (!shouldStartSiteRouteVeilNavigation(to, from)) {
return
}