Merge pull request #207 from petegonm/fix-bug-web

fix: 修复重命名对话时未指定对话ID或标题的警告逻辑
This commit is contained in:
Wenjie Zhang 2025-06-06 16:30:26 +08:00 committed by GitHub
commit e104e07cac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,7 +301,7 @@ const deleteChat = async (chatId) => {
//
const renameChat = async (data) => {
const { chatId, title } = data;
let { chatId, title } = data;
if (!chatId || !title) {
console.warn("未指定对话ID或标题无法重命名对话");