fix: 修改云任务执行权限控制

This commit is contained in:
Jiangjie.Bai 2022-04-18 15:52:51 +08:00 committed by Jiangjie.Bai
parent 1d594fc594
commit a93ecac15c

View File

@ -44,7 +44,7 @@ export default {
title: vm.$t('xpack.Execute'),
name: 'execute',
type: 'info',
can: () => vm.$hasPerm('xpack.change_syncinstancetask'),
can: () => vm.$hasPerm('xpack.add_syncinstancetaskexecution'),
callback: function(data) {
this.$axios.get(`/api/v1/xpack/cloud/sync-instance-tasks/${data.row.id}/run/`).then(res => {
openTaskPage(res['task'])