diff --git a/src/pages/park/screen-tab.tsx b/src/pages/park/screen-tab.tsx index 6116c6c..a8bfe4a 100644 --- a/src/pages/park/screen-tab.tsx +++ b/src/pages/park/screen-tab.tsx @@ -6,14 +6,18 @@ import { parkApi } from "@/api/park"; import { useParkTenant } from "./tenant-context"; import type { DisplayState } from "@/types"; -// 页面名与 park-desktop 大屏 PAGE_ALIAS 对齐(home→'/'、twin、ai、screen、wall) +// 页面名与 park-desktop 大屏 PAGE_ALIAS 对齐(home→'/'、twin、ai、tasks、screen、wall) const PAGE_COMMANDS: { action: string; label: string; params?: Record }[] = [ { action: "navigate", label: "数据大屏", params: { page: "home" } }, { action: "navigate", label: "数字孪生", params: { page: "twin" } }, { action: "navigate", label: "AI 助手", params: { page: "ai" } }, + { action: "navigate", label: "任务展示", params: { page: "tasks" } }, { action: "navigate", label: "媒体轮播", params: { page: "screen" } }, { action: "navigate", label: "企业展示墙", params: { page: "wall" } }, - { action: "voice_start", label: "语音助手", params: {} }, +]; +// 任务页控制(语音页已关闭,voice_* 不再下发;换成任务刷新) +const TASK_COMMANDS: { action: string; label: string; params?: Record }[] = [ + { action: "task_refresh", label: "刷新任务", params: {} }, ]; const PLAY_COMMANDS: { action: string; label: string }[] = [ { action: "play", label: "播放" }, @@ -83,6 +87,9 @@ export function ScreenTab() { {PLAY_COMMANDS.map((c) => )} + + {TASK_COMMANDS.map((c) => )} + {GLOBAL_COMMANDS.map((c) => )}