diff --git a/src/router/index.js b/src/router/router.js similarity index 75% rename from src/router/index.js rename to src/router/router.js index edf2ec3..eb4a380 100644 --- a/src/router/index.js +++ b/src/router/router.js @@ -2,6 +2,7 @@ import Vue from 'vue' import VueRouter from 'vue-router' import Login from '../components/Login' import Home from '../components/Home' +import welcome from '../components/welcome' Vue.use(VueRouter) @@ -15,7 +16,14 @@ const routes = [ }, { path: '/home', - component: Home + component: Home, + redirect: '/welcome', + children: [ + { + path: '/welcome', + component: welcome + } + ] } ]