refactor: update session management to handle tasks and responses in a single update

This commit is contained in:
Justin Lin committed 2025-04-23 16:03:39 +08:00
1 parent 66434ff897
commit 2fcca0c4b9
4 files changed
+32 -17

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ import useSession from '../../store/session'
const sessionStore = useSession()
const tasks = computed(() => {
console.log('session', sessionStore.session)
return sessionStore.session?.tasks.map((task) => {
const prefix = task.completed ? '✓' : '➤'
const color = task.completed ? 'text-text-primary' : 'text-text'