fix: redirect default path after login

This commit is contained in:
jialin
2024-06-23 21:30:20 +08:00
parent ff1cf01edf
commit 9e471eafa7
7 changed files with 67 additions and 38 deletions
+8 -8
View File
@@ -1,17 +1,16 @@
export default [
{
path: '/',
key: 'dashboard',
layout: false,
icon: 'home',
redirect: '/dashboard',
access: 'canLogin'
},
// {
// path: '/',
// key: 'root',
// icon: 'home',
// redirect: ''
// },
{
name: 'Dashboard',
path: '/dashboard',
key: 'dashboard',
icon: 'home',
access: 'canSeeAdmin',
component: './dashboard'
},
{
@@ -48,6 +47,7 @@ export default [
path: '/users',
key: 'users',
icon: 'Team',
access: 'canSeeAdmin',
component: './users'
},
{