Commit f77c4254 by Liu

fix:点踩后去掉弹窗反馈

parent bcef9cbf
......@@ -251,7 +251,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
<Button
className={`w-[96px] h-[32px] px-3 rounded-full shadow-none text-[12px] transition-all duration-200 ${
isToolBtnActive
? 'bg-[#29B6FD] border-[#29B6FD] text-white'
? 'bg-[#F3F7FF] border-[#F3F7FF] text-[#165DFF]'
: 'bg-white border border-[#E6E8EB] text-[#111827]'
}`}
radius="full"
......
......@@ -67,9 +67,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
feedbackStatus: '01',
content: '',
})
showToast('感谢您的反馈', 'success', {
icon: '🙏🏻',
})
showToast('感谢您的反馈', 'success')
}
else {
setIsLike(false)
......@@ -83,7 +81,14 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
const handleUnLike = async () => {
if (!isUnLike) {
setIsOpenUnLikeOpen(true)
setIsUnLike(true)
setIsLike(false)
await fetchSubmitFeedback({
recordId: answer.recordId,
feedbackStatus: '02',
content: '',
})
showToast('感谢您的反馈', 'success')
}
else {
setIsUnLike(false)
......@@ -100,9 +105,7 @@ export const ChatAnswerOperate: React.FC<ChatAnswerOperateProps> = ({ answer })
if (isSubmit) {
setIsLike(false)
setIsUnLike(true)
showToast('感谢您的反馈', 'success', {
icon: '🙏🏻',
})
showToast('感谢您的反馈', 'success')
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment