mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
perf: 优化路由 (#1045)
* perf: 优化路由 * perf: 优化提示 * oerf: ... Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -97,6 +97,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
// eslint-disable-next-line vue/require-default-prop
|
||||||
data: Object,
|
data: Object,
|
||||||
prop: {
|
prop: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -104,10 +105,13 @@ export default {
|
|||||||
return this.data.id
|
return this.data.id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line vue/require-prop-types,vue/require-default-prop
|
||||||
itemValue: {},
|
itemValue: {},
|
||||||
|
// eslint-disable-next-line vue/require-default-prop
|
||||||
value: Object,
|
value: Object,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
readonly: Boolean,
|
readonly: Boolean,
|
||||||
|
// eslint-disable-next-line vue/require-default-prop
|
||||||
options: Array
|
options: Array
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@@ -5,6 +5,7 @@ export default [
|
|||||||
path: 'asset-accounts',
|
path: 'asset-accounts',
|
||||||
component: empty,
|
component: empty,
|
||||||
meta: { title: i18n.t('route.AssetAccount') },
|
meta: { title: i18n.t('route.AssetAccount') },
|
||||||
|
redirect: '',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
@@ -17,6 +18,7 @@ export default [
|
|||||||
{
|
{
|
||||||
path: 'application-accounts',
|
path: 'application-accounts',
|
||||||
component: empty,
|
component: empty,
|
||||||
|
redirect: '',
|
||||||
meta: { title: i18n.t('route.AssetAccount') },
|
meta: { title: i18n.t('route.AssetAccount') },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@@ -41,6 +41,7 @@ export default [
|
|||||||
path: 'databases',
|
path: 'databases',
|
||||||
name: 'DatabaseAppList',
|
name: 'DatabaseAppList',
|
||||||
component: empty,
|
component: empty,
|
||||||
|
redirect: '',
|
||||||
meta: { title: i18n.t('route.DatabaseApp') },
|
meta: { title: i18n.t('route.DatabaseApp') },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@@ -8,13 +8,14 @@ export default [
|
|||||||
path: 'sessions',
|
path: 'sessions',
|
||||||
name: 'SessionList',
|
name: 'SessionList',
|
||||||
component: empty,
|
component: empty,
|
||||||
|
redirect: '',
|
||||||
meta: { title: i18n.t('route.Sessions'), permissions: [rolec.PERM_AUDIT] },
|
meta: { title: i18n.t('route.Sessions'), permissions: [rolec.PERM_AUDIT] },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'SessionList',
|
name: 'SessionList',
|
||||||
component: () => import('@/views/sessions/SessionList/index'),
|
component: () => import('@/views/sessions/SessionList/index'),
|
||||||
meta: { title: i18n.t('route.Sessions') }
|
meta: { title: i18n.t('route.Sessions'), permissions: [rolec.PERM_AUDIT] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
|
@@ -61,6 +61,7 @@ export default [
|
|||||||
path: 'flows',
|
path: 'flows',
|
||||||
name: 'TicketFlowList',
|
name: 'TicketFlowList',
|
||||||
component: empty,
|
component: empty,
|
||||||
|
redirect: '',
|
||||||
meta: { title: i18n.t('route.TicketFlow'), icon: 'check-square-o', activeMenu: '/tickets/tickets' },
|
meta: { title: i18n.t('route.TicketFlow'), icon: 'check-square-o', activeMenu: '/tickets/tickets' },
|
||||||
hidden: true,
|
hidden: true,
|
||||||
children: [
|
children: [
|
||||||
|
Reference in New Issue
Block a user