diff --git a/src/runtime/inertia/stubs.ts b/src/runtime/inertia/stubs.ts index 0091d322..a16c5a89 100644 --- a/src/runtime/inertia/stubs.ts +++ b/src/runtime/inertia/stubs.ts @@ -1,11 +1,10 @@ import { ref, onScopeDispose } from 'vue' import type { Ref, Plugin as VuePlugin } from 'vue' import { createHooks } from 'hookable' - +import { usePage } from '@inertiajs/vue3' +import { useColorMode as useColorModeVueUse } from '@vueuse/core' import appConfig from '#build/app.config' import type { NuxtApp } from '#app' -import { useColorMode as useColorModeVueUse } from '@vueuse/core' -import { usePage } from '@inertiajs/vue3' export { useHead } from '@unhead/vue' @@ -16,6 +15,7 @@ export { useLocale } from '../composables/useLocale' export const useRoute = () => { const page = usePage() + return { fullPath: page.url } @@ -25,6 +25,10 @@ export const useRouter = () => { } +export const clearError = () => { + +} + export const useColorMode = () => { if (!appConfig.colorMode) { return { diff --git a/src/runtime/vue/stubs.ts b/src/runtime/vue/stubs.ts index 24713b3b..343e7a4a 100644 --- a/src/runtime/vue/stubs.ts +++ b/src/runtime/vue/stubs.ts @@ -1,10 +1,9 @@ import { ref, onScopeDispose } from 'vue' import type { Ref, Plugin as VuePlugin } from 'vue' import { createHooks } from 'hookable' - +import { useColorMode as useColorModeVueUse } from '@vueuse/core' import appConfig from '#build/app.config' import type { NuxtApp } from '#app' -import { useColorMode as useColorModeVueUse } from '@vueuse/core' export { useHead } from '@unhead/vue' export { useRoute, useRouter } from 'vue-router' @@ -14,6 +13,10 @@ export { defineShortcuts } from '../composables/defineShortcuts' export { defineLocale } from '../composables/defineLocale' export { useLocale } from '../composables/useLocale' +export const clearError = () => { + +} + export const useColorMode = () => { if (!appConfig.colorMode) { return {