Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
f77c4254
Commit
f77c4254
authored
Oct 23, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:点踩后去掉弹窗反馈
parent
bcef9cbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
src/components/ChatEditor/index.tsx
+1
-1
src/pages/Chat/components/ChatItem/ChatAnswerOperate.tsx
+10
-7
No files found.
src/components/ChatEditor/index.tsx
View file @
f77c4254
...
@@ -251,7 +251,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
...
@@ -251,7 +251,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
<
Button
<
Button
className=
{
`w-[96px] h-[32px] px-3 rounded-full shadow-none text-[12px] transition-all duration-200 ${
className=
{
`w-[96px] h-[32px] px-3 rounded-full shadow-none text-[12px] transition-all duration-200 ${
isToolBtnActive
isToolBtnActive
? 'bg-[#
29B6FD] border-[#29B6FD] text-white
'
? 'bg-[#
F3F7FF] border-[#F3F7FF] text-[#165DFF]
'
: 'bg-white border border-[#E6E8EB] text-[#111827]'
: 'bg-white border border-[#E6E8EB] text-[#111827]'
}`
}
}`
}
radius=
"full"
radius=
"full"
...
...
src/pages/Chat/components/ChatItem/ChatAnswerOperate.tsx
View file @
f77c4254
...
@@ -67,9 +67,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
...
@@ -67,9 +67,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
feedbackStatus
:
'01'
,
feedbackStatus
:
'01'
,
content
:
''
,
content
:
''
,
})
})
showToast
(
'感谢您的反馈'
,
'success'
,
{
showToast
(
'感谢您的反馈'
,
'success'
)
icon
:
'🙏🏻'
,
})
}
}
else
{
else
{
setIsLike
(
false
)
setIsLike
(
false
)
...
@@ -83,7 +81,14 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
...
@@ -83,7 +81,14 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
const
handleUnLike
=
async
()
=>
{
const
handleUnLike
=
async
()
=>
{
if
(
!
isUnLike
)
{
if
(
!
isUnLike
)
{
setIsOpenUnLikeOpen
(
true
)
setIsUnLike
(
true
)
setIsLike
(
false
)
await
fetchSubmitFeedback
({
recordId
:
answer
.
recordId
,
feedbackStatus
:
'02'
,
content
:
''
,
})
showToast
(
'感谢您的反馈'
,
'success'
)
}
}
else
{
else
{
setIsUnLike
(
false
)
setIsUnLike
(
false
)
...
@@ -100,9 +105,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
...
@@ -100,9 +105,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
if
(
isSubmit
)
{
if
(
isSubmit
)
{
setIsLike
(
false
)
setIsLike
(
false
)
setIsUnLike
(
true
)
setIsUnLike
(
true
)
showToast
(
'感谢您的反馈'
,
'success'
,
{
showToast
(
'感谢您的反馈'
,
'success'
)
icon
:
'🙏🏻'
,
})
}
}
}
}
...
...
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