fix hint display problems

This commit is contained in:
Annie Huang authored and Lin, Hung-Shin committed 2024-04-05 22:19:38 +08:00
1 parent ff1cdc9a95
commit 14fb870838
3 files changed
+6 -4

No files matched your search

+2
View File
@@ -70,6 +70,7 @@ const right = () => {
<li <li
v-for="response in sessionStore.session.responses[current]" v-for="response in sessionStore.session.responses[current]"
:key="response" :key="response"
id="content"
class="text-text font-xl whitespace-pre-wrap" class="text-text font-xl whitespace-pre-wrap"
> >
<div v-for="content in response.content" :key="content"> <div v-for="content in response.content" :key="content">
@@ -79,6 +80,7 @@ const right = () => {
<li <li
v-for="hint in sessionStore.session.hints[current]" v-for="hint in sessionStore.session.hints[current]"
:key="hint" :key="hint"
id="hint-text"
class="text-text-primary font-xl whitespace-pre-wrap" class="text-text-primary font-xl whitespace-pre-wrap"
> >
<MarkdownText :content="hint" /> <MarkdownText :content="hint" />
+2 -2
View File
@@ -103,8 +103,8 @@ function updateGraph(event: { discover: FileObject[]; pwd: string }) {
function newResponse(response: StageResponse) { function newResponse(response: StageResponse) {
console.log('newResponse', response, 'session', store.session) console.log('newResponse', response, 'session', store.session)
store.session.responses.push(...response.responses) store.session.responses.push(response.responses)
store.session.hints.push(...response.hints) store.session.hints.push(response.hints)
store.session.tasks = response.tasks store.session.tasks = response.tasks
store.session.status = response.status store.session.status = response.status
} }
+2 -2
View File
@@ -10,9 +10,9 @@ export interface Task {
export interface StageResponse { export interface StageResponse {
status: string status: string
hints: string[] hints: string
tasks: Task[] tasks: Task[]
responses: IResponse[] responses: IResponse
} }
export interface Session { export interface Session {