fix(permissions): 收回客服的 CK 检测重登和自动巡检入口

客服默认不再有 cookie:operate;自动巡检菜单改按 automation:view 显示。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-06 12:20:30 +08:00
co-authored by Cursor
parent f2157f67f7
commit 39388c56b5
4 changed files with 25 additions and 2 deletions
+2
View File
@@ -75,6 +75,8 @@ export default function MainLayout({ onLogout }: { onLogout?: () => void }) {
}
if (can('cookie:operate')) {
douyuItems.push({ key: '/cookie-operations', label: 'CK 检测与重登', icon: <SafetyCertificateOutlined /> });
}
if (can('automation:view')) {
douyuItems.push({ key: '/automation', label: '自动巡检', icon: <RobotOutlined /> });
}
if (can('douyu:task')) {