From f720eaf05aa9f55aa51c72308fa443584d348c4e Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 28 May 2021 17:19:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97(=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 653933e2a..479f4c9b6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -83,17 +83,6 @@ export const allRoleRoutes = [ } ] }, - { - path: '/accounts', - component: Layout, - redirect: '/accounts/asset-accounts/', - name: 'Accounts', - meta: { - title: i18n.t('route.Accounts'), - icon: 'address-book' - }, - children: AccountRoutes - }, { path: '/users', component: Layout, @@ -122,6 +111,18 @@ export const allRoleRoutes = [ meta: { title: i18n.t('route.Applications'), icon: 'th' }, children: ApplicationsRoute }, + { + path: '/accounts', + component: Layout, + redirect: '/accounts/asset-accounts/', + name: 'Accounts', + meta: { + licenseRequired: true, + title: i18n.t('route.Accounts'), + icon: 'address-book' + }, + children: AccountRoutes + }, { path: '/perms/', component: Layout,