Commit 187e8a25 by Liu

delete: null

parent 86e1cdf8
......@@ -92,10 +92,8 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({
const handleClick = (item: string) => {
if (checkAuth() && !isClicking) {
setIsClicking(true)
// 优先使用当前会话,如果没有则使用第一个会话,如果都没有则创建新会话
const targetConversationId = currentConversationId || conversations[0]?.conversationId
if (targetConversationId) {
// 使用现有会话
dispatch(setCurrentConversation(targetConversationId))
......@@ -114,7 +112,6 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({
}),
)
}
// 防止重复点击
setTimeout(() => {
setIsClicking(false)
......
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