Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
baaca2c8
Commit
baaca2c8
authored
Jul 24, 2023
by
金伟强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: not async log thought
parent
e828217c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
index.tsx
web/app/components/app/chat/answer/index.tsx
+3
-3
index.tsx
web/app/components/explore/universal-chat/index.tsx
+0
-1
No files found.
web/app/components/app/chat/answer/index.tsx
View file @
baaca2c8
...
...
@@ -196,6 +196,9 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
<
div
className=
'text-xs text-gray-500'
>
{
t
(
'appDebug.openingStatement.title'
)
}
</
div
>
</
div
>
)
}
{
(
thoughts
&&
thoughts
.
length
>
0
)
&&
(
<
Thought
list=
{
thoughts
||
[]
}
isThinking=
{
isThinking
}
/>
)
}
{
(
isResponsing
&&
!
content
)
?
(
<
div
className=
'flex items-center justify-center w-6 h-5'
>
...
...
@@ -204,9 +207,6 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
)
:
(
<
div
>
{
(
thoughts
&&
thoughts
.
length
>
0
)
&&
(
<
Thought
list=
{
thoughts
||
[]
}
isThinking=
{
isThinking
}
/>
)
}
<
Markdown
content=
{
content
}
/>
</
div
>
)
}
...
...
web/app/components/explore/universal-chat/index.tsx
View file @
baaca2c8
...
...
@@ -518,7 +518,6 @@ const Main: FC<IMainProps> = () => {
draft
.
push
({
...
questionItem
})
draft
.
push
({
...
responseItem
})
})
// console.log('start render thought')
setChatList
(
newListWithAnswer
)
},
onError
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment