feat(voice): 提升桌面端语音交互与本地任务执行支持
This commit is contained in:
@@ -377,7 +377,14 @@ export default function App() {
|
||||
selfUserId={user?.id ?? ""}
|
||||
/>
|
||||
<InviteMembers open={inviteOpen} onClose={() => setInviteOpen(false)} tenantName={tenant?.tenant?.name ?? ""} />
|
||||
<VoiceDock onTask={onVoiceTask} />
|
||||
{/* JARVIS 界面动作(P2):服务端白名单过后,这里再按已知 ViewKey 核一次才执行(双保险)。 */}
|
||||
<VoiceDock
|
||||
onTask={onVoiceTask}
|
||||
onNavigate={(view, taskId) => {
|
||||
const allowed: ViewKey[] = ["home", "studio", "kb", "report", "runs", "memory", "usage"];
|
||||
if (allowed.includes(view as ViewKey)) goto(view as ViewKey, taskId);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</ToastProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user