From 41eccbc4fe87e282cd33635962203c50a2654c41 Mon Sep 17 00:00:00 2001 From: wzc520pyfm <1528857653@qq.com> Date: Sun, 8 Dec 2024 04:11:51 +0800 Subject: [PATCH] fix(schema): allow `routerOptions.history` to return null (#30192) --- packages/schema/src/types/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/types/router.ts b/packages/schema/src/types/router.ts index c7cb0ce850..950a46df32 100644 --- a/packages/schema/src/types/router.ts +++ b/packages/schema/src/types/router.ts @@ -1,7 +1,7 @@ import type { RouterHistory, RouterOptions as _RouterOptions } from 'vue-router' export type RouterOptions = Partial> & { - history?: (baseURL?: string) => RouterHistory + history?: (baseURL?: string) => RouterHistory | null | undefined routes?: (_routes: _RouterOptions['routes']) => _RouterOptions['routes'] | Promise<_RouterOptions['routes']> hashMode?: boolean scrollBehaviorType?: 'smooth' | 'auto'