axios请求拦截器
axios.interceptors.request.use(config => {
config.headers.Authorization = window.sessionStorage.getItem('token')
return config
})
Home路由重定向
path: '/home',
component: Home,
redirect: '/Welcome',
children: [
{
path: '/Welcome',
component: Welcome
}
]