feat(huya): 客服开放精英宝典工作台与外部 CK 导入

This commit is contained in:
yml2213
2026-11-09 11:09:01 +08:00
parent 6b2285913f
commit 070a7954e7
8 changed files with 38 additions and 6 deletions
+2 -1
View File
@@ -91,9 +91,10 @@ export default function MainLayout({ onLogout }: { onLogout?: () => void }) {
douyuItems.push({ key: '/douyu/collab', label: '外部单协作', icon: <FileExcelOutlined /> });
}
// 虎牙:客服只保留浏览器兑换;管理员/运营显示完整入口
// 虎牙:客服用浏览器兑换和精英宝典;管理员/运营显示完整入口
if (can('huya:task')) {
if (user?.role === 'support') {
huyaItems.push({ key: '/huya/elite', label: '精英宝典', icon: <BookOutlined /> });
huyaItems.push({ key: '/huya/browser-exchange', label: '浏览器兑换', icon: <GlobalOutlined /> });
} else {
if (canAny(['huya:account', 'huya:view_all', 'huya:view_assigned'])) {
+1 -1
View File
@@ -164,7 +164,7 @@ function taskQrUrl(task: HuyaTaskItem | undefined): string {
export default function HuyaElitePage() {
const { can } = usePermissions();
const canConfig = can('huya:config');
const canImport = can('huya:import');
const canImport = can('huya:import') || can('huya:elite:import_ck');
const [pool, setPool] = useState<HuyaAccountItem[]>([]);
const [accounts, setAccounts] = useState<HuyaAccountItem[]>([]);
const [selectedIds, setSelectedIds] = useState<number[]>([]);