mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix hint display problems
This commit is contained in:
1 parent
ff1cdc9a95
commit
14fb870838
3 files changed
+6
-4
No files matched your search
@@ -70,6 +70,7 @@ const right = () => {
|
||||
<li
|
||||
v-for="response in sessionStore.session.responses[current]"
|
||||
:key="response"
|
||||
id="content"
|
||||
class="text-text font-xl whitespace-pre-wrap"
|
||||
>
|
||||
<div v-for="content in response.content" :key="content">
|
||||
@@ -79,6 +80,7 @@ const right = () => {
|
||||
<li
|
||||
v-for="hint in sessionStore.session.hints[current]"
|
||||
:key="hint"
|
||||
id="hint-text"
|
||||
class="text-text-primary font-xl whitespace-pre-wrap"
|
||||
>
|
||||
<MarkdownText :content="hint" />
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user