src/layout/component/sidebar/components/ChatRecord.vue
@@ -112,7 +112,7 @@ title: edit.value, }); if (res.json_ok) { const foundIndex = chatRoomList.value.findIndex((item) => item.id === activeRoomId.value); const foundIndex = chatRoomList.value.findIndex((item) => item.id === room.id); chatRoomList.value[foundIndex].title = edit.value; chatRoomRef.value.firstElementChild?.scrollIntoView(); }