From 00f43f2580ea1f95c7ff43fbf0890d105a7cb7c8 Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 17 Jun 2020 11:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E5=AD=90=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/{index.js => router.js} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) rename src/router/{index.js => router.js} (75%) 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 + } + ] } ]