版博士V2.0程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

24 rindas
814 B

  1. declare module 'vue-router/auto/routes' {
  2. import type { RouteRecordRaw } from 'vue-router'
  3. export const routes: RouteRecordRaw[]
  4. }
  5. declare module 'vue-router/auto' {
  6. import type { RouterOptions, Router, RouteRecordRaw } from 'vue-router'
  7. export * from 'vue-router'
  8. /**
  9. * unplugin-vue-router version of `RouterOptions`.
  10. */
  11. export interface _RouterOptions extends Omit<RouterOptions, 'routes'> {
  12. /**
  13. * Allows modifying the routes before they are passed to the router. You can modify the existing array or return a
  14. * new one.
  15. *
  16. * @param routes - The routes generated by this plugin and exposed by `vue-router/auto/routes`
  17. */
  18. extendRoutes?: (routes: RouteRecordRaw[]) => RouteRecordRaw[] | void
  19. }
  20. export function createRouter(options: _RouterOptions): Router
  21. }