fix(vue): stub clearError

This commit is contained in:
Benjamin Canac
2025-07-09 17:48:30 +02:00
parent fc24e03cc4
commit d8160ba6ef
2 changed files with 12 additions and 5 deletions

View File

@@ -1,11 +1,10 @@
import { ref, onScopeDispose } from 'vue' import { ref, onScopeDispose } from 'vue'
import type { Ref, Plugin as VuePlugin } from 'vue' import type { Ref, Plugin as VuePlugin } from 'vue'
import { createHooks } from 'hookable' import { createHooks } from 'hookable'
import { usePage } from '@inertiajs/vue3'
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
import appConfig from '#build/app.config' import appConfig from '#build/app.config'
import type { NuxtApp } from '#app' import type { NuxtApp } from '#app'
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
import { usePage } from '@inertiajs/vue3'
export { useHead } from '@unhead/vue' export { useHead } from '@unhead/vue'
@@ -16,6 +15,7 @@ export { useLocale } from '../composables/useLocale'
export const useRoute = () => { export const useRoute = () => {
const page = usePage() const page = usePage()
return { return {
fullPath: page.url fullPath: page.url
} }
@@ -25,6 +25,10 @@ export const useRouter = () => {
} }
export const clearError = () => {
}
export const useColorMode = () => { export const useColorMode = () => {
if (!appConfig.colorMode) { if (!appConfig.colorMode) {
return { return {

View File

@@ -1,10 +1,9 @@
import { ref, onScopeDispose } from 'vue' import { ref, onScopeDispose } from 'vue'
import type { Ref, Plugin as VuePlugin } from 'vue' import type { Ref, Plugin as VuePlugin } from 'vue'
import { createHooks } from 'hookable' import { createHooks } from 'hookable'
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
import appConfig from '#build/app.config' import appConfig from '#build/app.config'
import type { NuxtApp } from '#app' import type { NuxtApp } from '#app'
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
export { useHead } from '@unhead/vue' export { useHead } from '@unhead/vue'
export { useRoute, useRouter } from 'vue-router' export { useRoute, useRouter } from 'vue-router'
@@ -14,6 +13,10 @@ export { defineShortcuts } from '../composables/defineShortcuts'
export { defineLocale } from '../composables/defineLocale' export { defineLocale } from '../composables/defineLocale'
export { useLocale } from '../composables/useLocale' export { useLocale } from '../composables/useLocale'
export const clearError = () => {
}
export const useColorMode = () => { export const useColorMode = () => {
if (!appConfig.colorMode) { if (!appConfig.colorMode) {
return { return {