mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 修复会话详情页button 按钮权限位控制
This commit is contained in:
@@ -117,7 +117,7 @@ export default {
|
||||
]
|
||||
|
||||
for (const preTab of preActiveTabs) {
|
||||
const currentTab = typeof preTab === 'object' ? preTab.name : preTab
|
||||
const currentTab = typeof preTab === 'object' ? preTab?.name : preTab
|
||||
for (const tabName of this.tabIndices) {
|
||||
const currentTabName = tabName?.name || ''
|
||||
if (currentTab?.toLowerCase() === currentTabName?.toLowerCase()) {
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
attrs: {
|
||||
type: 'danger',
|
||||
label: this.$t('sessions.terminate'),
|
||||
disabled: !this.session['can_terminate']
|
||||
disabled: !this.session['can_terminate'] || !vm.$hasPerm('terminal.terminate_session')
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('sessions.Monitor'),
|
||||
disabled: !this.session['can_join']
|
||||
disabled: !this.session['can_join'] || !vm.$hasPerm('terminal.monitor_session')
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
|
||||
Reference in New Issue
Block a user