@tencentcloud/ai-desk-customer-vue
Version:
Vue UIKit for AI Desk
9 lines (8 loc) • 317 B
text/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);
}
}