new changes
This commit is contained in:
@@ -3,7 +3,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
let isFirstLoad = true;
|
||||
|
||||
nuxtApp.hook("page:finish", () => {
|
||||
const currentPath = useRoute().fullPath;
|
||||
const { fullPath: currentPath } = useRoute();
|
||||
|
||||
if (isFirstLoad) {
|
||||
previousPath = currentPath;
|
||||
|
||||
Reference in New Issue
Block a user