diff --git a/CHANGELOG.md b/CHANGELOG.md index a69eb8d0..bfe9c7df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # 更新日志 +## v4.1.0 +* bug修复:修复移动端修改聊天标题不生效的问题 +* ## v4.0.9 * 环境升级:升级 Golang 到 go1.22.4 * 功能增加:接入微信商户号支付渠道 diff --git a/database/update-v4.1.0.sql b/database/update-v4.1.0.sql new file mode 100644 index 00000000..ba309dc9 --- /dev/null +++ b/database/update-v4.1.0.sql @@ -0,0 +1 @@ +ALTER TABLE `chatgpt_chat_models` CHANGE `power` `power` SMALLINT NOT NULL COMMENT '消耗算力点数'; \ No newline at end of file diff --git a/web/src/views/mobile/ChatList.vue b/web/src/views/mobile/ChatList.vue index ed4d186a..96dc91da 100644 --- a/web/src/views/mobile/ChatList.vue +++ b/web/src/views/mobile/ChatList.vue @@ -241,7 +241,7 @@ const editChat = (row) => { tmpChatTitle.value = row.title } const saveTitle = () => { - httpPost('/api/chat/update', {id: item.value.id, title: tmpChatTitle.value}).then(() => { + httpPost('/api/chat/update', {chat_id: item.value.chat_id, title: tmpChatTitle.value}).then(() => { showSuccessToast("操作成功!"); item.value.title = tmpChatTitle.value; }).catch(e => {