123456789 |
- import { TUIStore, StoreName } from "@tencentcloud/chat-uikit-engine";
- export function enableSampleTaskStatus(taskKey: string) {
- const tasks = TUIStore.getData(StoreName.APP, "tasks");
- if (taskKey in tasks && !tasks[taskKey]) {
- tasks[taskKey] = true;
- TUIStore.update(StoreName.APP, "tasks", tasks);
- }
- }
|