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