mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
[fix]添加Xpack案例
This commit is contained in:
parent
a64a367610
commit
a9ffb87e69
@ -6,6 +6,7 @@ Vue.use(Router)
|
||||
/* Layout */
|
||||
import Layout from '@/layout'
|
||||
|
||||
const requireContext = require.context('@/views/', true, /router\.js$/)
|
||||
/**
|
||||
* Note: sub-menu only appear when route children.length >= 1
|
||||
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
|
||||
@ -127,6 +128,7 @@ export const adminRoutes = [
|
||||
meta: { title: 'Audits', icon: 'history' },
|
||||
children: AuditsRoutes
|
||||
},
|
||||
...requireContext.keys().map(key => requireContext(key).default),
|
||||
{
|
||||
path: '/settings',
|
||||
component: Layout,
|
||||
@ -146,6 +148,7 @@ export const adminRoutes = [
|
||||
meta: { title: 'CeleryTaskLog' }
|
||||
},
|
||||
{ path: '*', redirect: '/404', hidden: true }
|
||||
|
||||
]
|
||||
/**
|
||||
* user routes
|
||||
|
8
src/views/Xpack/router.js
Normal file
8
src/views/Xpack/router.js
Normal file
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
path: '/Xpack',
|
||||
component: () => import('@/views/jobcenter/CeleryTaskLog'),
|
||||
redirect: '/applications/remote-apps/',
|
||||
name: 'Xpack',
|
||||
meta: { title: 'Xpack', icon: 'th' }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user