Browse Source

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

Tanimodori 2 năm trước cách đây
mục cha
commit
85f1e58bcc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/hooks/web/usePage.ts

+ 1 - 1
src/hooks/web/usePage.ts

@@ -7,7 +7,7 @@ import { unref } from 'vue';
 import { useRouter } from 'vue-router';
 import { REDIRECT_NAME } from '/@/router/constant';
 
-export type RouteLocationRawEx = Omit<RouteLocationRaw, 'path'> & { path: PageEnum };
+export type RouteLocationRawEx = RouteLocationRaw & { path: PageEnum };
 
 function handleError(e: Error) {
   console.error(e);