mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 02:57:47 +00:00
fix: 修复会话记录进入详情空白问题
This commit is contained in:
parent
d14cdcf05d
commit
3ea1fc192a
@ -8,6 +8,8 @@ export default [
|
|||||||
component: empty,
|
component: empty,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('route.Sessions'),
|
title: i18n.t('route.Sessions'),
|
||||||
|
app: 'terminal',
|
||||||
|
resource: 'session',
|
||||||
permissions: ['terminal.view_session']
|
permissions: ['terminal.view_session']
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -19,9 +19,7 @@ export default {
|
|||||||
name: 'terminate',
|
name: 'terminate',
|
||||||
title: this.$t('sessions.terminate'),
|
title: this.$t('sessions.terminate'),
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
can: ({ row, cellValue }) => {
|
can: ({ row }) => row['can_terminate'] && vm.$hasPerm('terminal.terminate_session'),
|
||||||
return row['can_terminate'] && this.$hasPerm('terminal.terminate_session')
|
|
||||||
},
|
|
||||||
callback: function({ reload, row }) {
|
callback: function({ reload, row }) {
|
||||||
// 终断 session reload
|
// 终断 session reload
|
||||||
const data = [row.id]
|
const data = [row.id]
|
||||||
|
Loading…
Reference in New Issue
Block a user