消息
This commit is contained in:
8
TUIKit/utils/enableSampleTaskStatus.ts
Normal file
8
TUIKit/utils/enableSampleTaskStatus.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user