fix: 修复存储测试权限位

This commit is contained in:
Jiangjie.Bai
2022-03-15 19:35:08 +08:00
committed by Jiangjie.Bai
parent 15a0bf61fa
commit a696048ce8
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ export default {
name: 'test',
title: this.$t('sessions.test'),
type: 'primary',
can: vm.$hasPerm('terminal.change_commandstorage'),
can: vm.$hasPerm('terminal.view_commandstorage'),
callback: function({ row, col, cellValue, reload }) {
TestCommandStorage(row.id).then(data => {
if (!data['is_valid']) {

View File

@@ -73,7 +73,7 @@ export default {
{
name: 'test',
title: this.$t('sessions.test'),
can: vm.$hasPerm('terminal.change_replaystorage'),
can: vm.$hasPerm('terminal.view_replaystorage'),
type: 'primary',
callback: function({ row, col, cellValue, reload }) {
TestReplayStorage(row.id).then(data => {