From 6912993ebd67323bb7f7e786be62657d61b29659 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 8 Aug 2021 19:33:44 +0200 Subject: [PATCH] update(example): redirect to basic example as default --- examples/router.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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')