mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
fix: 兼容之前的sessiondetail
This commit is contained in:
committed by
Jiangjie.Bai
parent
fbed123991
commit
df98ce3a6f
@@ -24,5 +24,16 @@ export default [
|
||||
title: i18n.t('route.CeleryTaskLog'),
|
||||
permissions: []
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/terminal/sessions/:id',
|
||||
name: 'OldSessionDetail',
|
||||
meta: {
|
||||
permissions: ['terminal.view_session']
|
||||
},
|
||||
hidden: true,
|
||||
beforeEnter: (to, from, next) => {
|
||||
next({ name: 'SessionDetail', params: to.params, query: to.query })
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@@ -105,12 +105,12 @@ export function getApiPath(that) {
|
||||
} else if (pagePathArray.indexOf('gathered-user') !== -1 || pagePathArray.indexOf('change-auth-plan') !== -1) {
|
||||
pagePathArray[pagePathArray.indexOf('accounts')] = 'xpack'
|
||||
}
|
||||
if (pagePathArray.indexOf('view') !== -1) {
|
||||
// view console
|
||||
pagePath = pagePathArray.slice(2, pagePathArray.length).join('/')
|
||||
} else {
|
||||
if (pagePathArray.indexOf('tickets') !== -1) {
|
||||
// ticket ...
|
||||
pagePath = pagePathArray.slice(1, pagePathArray.length).join('/')
|
||||
} else {
|
||||
// console,audit,workspace
|
||||
pagePath = pagePathArray.slice(2, pagePathArray.length).join('/')
|
||||
}
|
||||
return `/api/v1/${pagePath}/`
|
||||
}
|
||||
|
Reference in New Issue
Block a user