diff --git a/src/router/index.js b/src/router/index.js index 514bb11..9600dc8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,13 +5,19 @@ import Login from '../views/login/login.vue' import local from '../utils/local' Vue.use(VueRouter) + const routes = [ { path: '/login', component: Login, meta: { title: '登录', activeMenu: '/login' } - }, + }, { + path: '/', + component: Layout, + redirect: '/login', + meta: { title: '', activeMenu: '/login' } + }, { // 首页 path: '/index', component: Layout,