9 lines
317 B
TypeScript
9 lines
317 B
TypeScript
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);
|
|
}
|
|
}
|