From 14fb870838e0966d4f7fba0d8362f0a4d7519500 Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Fri, 5 Apr 2024 21:54:39 +0800 Subject: [PATCH] fix hint display problems --- app/src/components/HintPart.vue | 2 ++ app/src/store/session.ts | 4 ++-- app/src/types.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/components/HintPart.vue b/app/src/components/HintPart.vue index ed4ff05..7f2522d 100644 --- a/app/src/components/HintPart.vue +++ b/app/src/components/HintPart.vue @@ -70,6 +70,7 @@ const right = () => {
  • @@ -79,6 +80,7 @@ const right = () => {
  • diff --git a/app/src/store/session.ts b/app/src/store/session.ts index 8e21aa5..5506ce6 100644 --- a/app/src/store/session.ts +++ b/app/src/store/session.ts @@ -103,8 +103,8 @@ function updateGraph(event: { discover: FileObject[]; pwd: string }) { function newResponse(response: StageResponse) { console.log('newResponse', response, 'session', store.session) - store.session.responses.push(...response.responses) - store.session.hints.push(...response.hints) + store.session.responses.push(response.responses) + store.session.hints.push(response.hints) store.session.tasks = response.tasks store.session.status = response.status } diff --git a/app/src/types.ts b/app/src/types.ts index 11a7b86..3dbfb84 100644 --- a/app/src/types.ts +++ b/app/src/types.ts @@ -10,9 +10,9 @@ export interface Task { export interface StageResponse { status: string - hints: string[] + hints: string tasks: Task[] - responses: IResponse[] + responses: IResponse } export interface Session {