fix(项目管理): 修复只读权限不显示机器人状态的缺陷

--bug=1036632 --user=王孝刚 【项目管理】消息管理只有查询权限-消息设置&机器人列表未显示开关状态
https://www.tapd.cn/55049933/s/1505394
This commit is contained in:
wxg0103 2024-04-22 17:47:52 +08:00 committed by Craftsman
parent a3693c1dd9
commit 65ae5c8fad
1 changed files with 3 additions and 1 deletions

View File

@ -85,10 +85,11 @@
</div>
<a-switch
v-model:model-value="robot.enable"
v-permission="['PROJECT_MESSAGE:READ+UPDATE']"
v-permission="['PROJECT_MESSAGE:READ']"
size="small"
class="ml-auto"
type="line"
:disabled="!hasAnyPermission(['PROJECT_MESSAGE:READ+UPDATE'])"
@change="handleEnableIntercept(robot)"
/>
</div>
@ -317,6 +318,7 @@
import useAppStore from '@/store/modules/app';
import { characterLimit } from '@/utils';
import { translateTextToPX } from '@/utils/css';
import { hasAnyPermission } from '@/utils/permission';
import type {
ProjectRobotPlatform,