Skip to content

Commit

Permalink
fix wel page
Browse files Browse the repository at this point in the history
  • Loading branch information
mgbq committed Jul 4, 2018
1 parent d220f93 commit f9321ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@ export const constantRouterMap = [
component: () => import('@/views/dashboard/index')
}]
},
{
path: '/wel',
component: Layout,
redirect: '/wel/wel',
name: 'wel',
hidden: true,
children: [{
path: 'wel',
component: () => import('@/views/login/wel')
}]
},

// {
// path: '/wel',
// component: Layout,
// redirect: '/wel/wel',
// name: 'wel',
// hidden: true,
// children: [{
// path: 'wel',
// component: () => import('@/views/login/wel')
// }]
// },
{
path: '/report',
component: Layout,
Expand Down
2 changes: 1 addition & 1 deletion src/views/login/userlogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
this.$refs.loginForm.validate(valid => {
if (valid) {
this.$store.dispatch('Login', this.loginForm).then(res => {
this.$router.push({ path: '/wel' })
this.$router.push({ path: '/report/report' })
})
}
})
Expand Down

0 comments on commit f9321ea

Please sign in to comment.