diff --git a/examples/router.ts b/examples/router.ts index 7f3a8c94..2a6ef517 100644 --- a/examples/router.ts +++ b/examples/router.ts @@ -1,6 +1,10 @@ -import { createRouter, createWebHashHistory } from 'vue-router'; +import { createRouter, createWebHashHistory, RouterOptions } from 'vue-router'; -export const routes = [ +export const routes: RouterOptions['routes'] = [ + { + path: '/', + redirect: '/basic' + }, { path: '/basic', component: () => import('./Basic/Basic.vue')