Skip to content

Commit d8160ba

Browse files
committed
fix(vue): stub clearError
1 parent fc24e03 commit d8160ba

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/runtime/inertia/stubs.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { ref, onScopeDispose } from 'vue'
22
import type { Ref, Plugin as VuePlugin } from 'vue'
33
import { createHooks } from 'hookable'
4-
4+
import { usePage } from '@inertiajs/vue3'
5+
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
56
import appConfig from '#build/app.config'
67
import type { NuxtApp } from '#app'
7-
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
8-
import { usePage } from '@inertiajs/vue3'
98

109
export { useHead } from '@unhead/vue'
1110

@@ -16,6 +15,7 @@ export { useLocale } from '../composables/useLocale'
1615

1716
export const useRoute = () => {
1817
const page = usePage()
18+
1919
return {
2020
fullPath: page.url
2121
}
@@ -25,6 +25,10 @@ export const useRouter = () => {
2525

2626
}
2727

28+
export const clearError = () => {
29+
30+
}
31+
2832
export const useColorMode = () => {
2933
if (!appConfig.colorMode) {
3034
return {

src/runtime/vue/stubs.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { ref, onScopeDispose } from 'vue'
22
import type { Ref, Plugin as VuePlugin } from 'vue'
33
import { createHooks } from 'hookable'
4-
4+
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
55
import appConfig from '#build/app.config'
66
import type { NuxtApp } from '#app'
7-
import { useColorMode as useColorModeVueUse } from '@vueuse/core'
87

98
export { useHead } from '@unhead/vue'
109
export { useRoute, useRouter } from 'vue-router'
@@ -14,6 +13,10 @@ export { defineShortcuts } from '../composables/defineShortcuts'
1413
export { defineLocale } from '../composables/defineLocale'
1514
export { useLocale } from '../composables/useLocale'
1615

16+
export const clearError = () => {
17+
18+
}
19+
1720
export const useColorMode = () => {
1821
if (!appConfig.colorMode) {
1922
return {

0 commit comments

Comments
 (0)