fixed bug: mobile chat list could not update chat title

This commit is contained in:
RockYang 2024-06-25 09:53:08 +08:00
parent 4905fb28d4
commit d63536d5ef
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
## v4.1.0
* bug修复修复移动端修改聊天标题不生效的问题
*
## v4.0.9
* 环境升级:升级 Golang 到 go1.22.4
* 功能增加:接入微信商户号支付渠道

View File

@ -0,0 +1 @@
ALTER TABLE `chatgpt_chat_models` CHANGE `power` `power` SMALLINT NOT NULL COMMENT '消耗算力点数';

View File

@ -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 => {