diff --git a/plugins/80.finish.ts b/plugins/80.finish.ts new file mode 100644 index 0000000..4e543ef --- /dev/null +++ b/plugins/80.finish.ts @@ -0,0 +1,16 @@ +export default defineNuxtPlugin({ + name: "set finish", + setup(nuxt) { + console.log("setup start"); + let loaded: Ref = ref(false); + nuxt.hook("page:finish", (comp) => { + console.log("setup end"); + loaded.value = true; + }); + return { + provide: { + loaded, + }, + }; + }, +});