[fix]更新路由权限,更新eslint Ignore

This commit is contained in:
OrangeM21
2020-06-22 16:15:56 +08:00
parent 26ec366332
commit 7eccb20269
2 changed files with 27 additions and 17 deletions

View File

@@ -2,4 +2,5 @@ build/*.js
src/assets src/assets
public public
dist dist
lina
node_modules node_modules

View File

@@ -1,5 +1,6 @@
import i18n from '@/i18n/i18n' import i18n from '@/i18n/i18n'
import rolec from '@/utils/role' import rolec from '@/utils/role'
import empty from '@/layout/empty'
export default [ export default [
{ {
path: 'session', path: 'session',
@@ -34,23 +35,31 @@ export default [
}, },
{ {
path: 'terminal', path: 'terminal',
component: empty,
redirect: '',
meta: { title: i18n.t('route.Terminal'), permissions: [rolec.PERM_SUPER] },
children: [
{
path: '',
name: 'TerminalList', name: 'TerminalList',
component: () => import('@/views/sessions/TerminalList'), component: () => import('@/views/sessions/TerminalList'),
meta: { title: i18n.t('route.Terminal'), permissions: [rolec.PERM_SUPER] } meta: { title: i18n.t('route.Terminal') }
}, },
{ {
path: 'terminals/:id', path: ':id',
name: 'TerminalDetail', name: 'TerminalDetail',
component: () => import('@/views/sessions/TerminalDetail'), component: () => import('@/views/sessions/TerminalDetail'),
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal', permissions: [rolec.PERM_SUPER] }, meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal' },
hidden: true hidden: true
}, },
{ {
path: 'terminals/:id/update', path: ':id/update',
name: 'TerminalUpdate', name: 'TerminalUpdate',
component: () => import('@/views/sessions/TerminalUpdate'), component: () => import('@/views/sessions/TerminalUpdate'),
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal', permissions: [rolec.PERM_SUPER] }, meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal' },
hidden: true hidden: true
}
]
}, },
{ {
path: 'storages', path: 'storages',