Commit 85f1e58bccddc6eb460155902fd22cdf3221ac46

Authored by Tanimodori
Committed by GitHub
1 parent e073b4c9

types: 修复RouteLocationRawEx类型错误 (vbenjs#1968) (#1970)

Showing 1 changed file with 1 additions and 1 deletions
src/hooks/web/usePage.ts
@@ -7,7 +7,7 @@ import { unref } from 'vue'; @@ -7,7 +7,7 @@ import { unref } from 'vue';
7 import { useRouter } from 'vue-router'; 7 import { useRouter } from 'vue-router';
8 import { REDIRECT_NAME } from '/@/router/constant'; 8 import { REDIRECT_NAME } from '/@/router/constant';
9 9
10 -export type RouteLocationRawEx = Omit<RouteLocationRaw, 'path'> & { path: PageEnum }; 10 +export type RouteLocationRawEx = RouteLocationRaw & { path: PageEnum };
11 11
12 function handleError(e: Error) { 12 function handleError(e: Error) {
13 console.error(e); 13 console.error(e);