From 87c8d11bf48fbc0376d362823a6cb1ccdd0264bb Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 28 Oct 2021 17:26:29 +0800 Subject: [PATCH] fix: acl migrate --- src/router/acl.js | 28 ---------------------------- src/router/users.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/src/router/acl.js b/src/router/acl.js index b765cbd9e..e5884c7cb 100644 --- a/src/router/acl.js +++ b/src/router/acl.js @@ -38,33 +38,5 @@ export default [ hidden: true } ] - }, - { - path: 'user-login-acl', - component: empty, - redirect: '', - children: [ - { - path: 'create', - name: 'UserLoginACLCreate', - component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate'), - meta: { title: i18n.t('route.UserLoginACLCreate'), activeMenu: '/users/users' }, - hidden: true - }, - { - path: ':id', - name: 'UserLoginACLDetail', - component: () => import('@/views/acl/UserLoginACL/UserDetail'), - meta: { title: i18n.t('route.UserLoginACL'), activeMenu: '/users/users' }, - hidden: true - }, - { - path: ':id/update', - name: 'UserLoginACLUpdate', - component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate'), - meta: { title: i18n.t('route.UserLoginACLUpdate'), activeMenu: '/users/users' }, - hidden: true - } - ] } ] diff --git a/src/router/users.js b/src/router/users.js index 6ea0aa177..445664e9f 100644 --- a/src/router/users.js +++ b/src/router/users.js @@ -1,4 +1,5 @@ import i18n from '@/i18n/i18n' +import empty from '@/layout/empty' export default [ { path: 'users', @@ -53,5 +54,33 @@ export default [ name: 'UserGroupDetail', hidden: true, meta: { title: i18n.t('route.UserGroupDetail'), activeMenu: '/users/groups' } + }, + { + path: 'user-login-acl', + component: empty, + redirect: '', + children: [ + { + path: 'create', + name: 'UserLoginACLCreate', + component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate'), + meta: { title: i18n.t('route.UserLoginACLCreate'), activeMenu: '/users/users' }, + hidden: true + }, + { + path: ':id', + name: 'UserLoginACLDetail', + component: () => import('@/views/acl/UserLoginACL/UserDetail'), + meta: { title: i18n.t('route.UserLoginACL'), activeMenu: '/users/users' }, + hidden: true + }, + { + path: ':id/update', + name: 'UserLoginACLUpdate', + component: () => import('@/views/acl/UserLoginACL/UserLoginACLCreateUpdate'), + meta: { title: i18n.t('route.UserLoginACLUpdate'), activeMenu: '/users/users' }, + hidden: true + } + ] } ]