Commit f77c4254 by Liu

fix:点踩后去掉弹窗反馈

parent bcef9cbf
...@@ -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"
......
...@@ -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: '🙏🏻',
})
} }
} }
......
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