게시물 목록 페이지 전환 로딩 수정
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user