Merge pull request #207 from petegonm/fix-bug-web
fix: 修复重命名对话时未指定对话ID或标题的警告逻辑
This commit is contained in:
commit
e104e07cac
@ -301,7 +301,7 @@ const deleteChat = async (chatId) => {
|
|||||||
|
|
||||||
// 重命名对话
|
// 重命名对话
|
||||||
const renameChat = async (data) => {
|
const renameChat = async (data) => {
|
||||||
const { chatId, title } = data;
|
let { chatId, title } = data;
|
||||||
|
|
||||||
if (!chatId || !title) {
|
if (!chatId || !title) {
|
||||||
console.warn("未指定对话ID或标题,无法重命名对话");
|
console.warn("未指定对话ID或标题,无法重命名对话");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user