mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-15 23:01:11 +00:00
perf: 添加可中断API字段
This commit is contained in:
@@ -106,6 +106,9 @@ export default {
|
||||
type: 'danger',
|
||||
label: this.$t('sessions.terminate')
|
||||
},
|
||||
can: () => {
|
||||
return vm.sessionData.can_terminate
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
// 终断 session reload
|
||||
|
@@ -19,6 +19,9 @@ export default {
|
||||
name: 'terminate',
|
||||
title: this.$t('sessions.terminate'),
|
||||
type: 'danger',
|
||||
can: (row, cellValue) => {
|
||||
return row.can_terminate
|
||||
},
|
||||
callback: function({ reload, cellValue, tableData }) {
|
||||
// 终断 session reload
|
||||
const data = [cellValue]
|
||||
|
Reference in New Issue
Block a user