完成聊天框功能开发

This commit is contained in:
2026-03-30 20:28:50 +08:00
parent f9bc77d392
commit 80237463ef
14 changed files with 263 additions and 191 deletions

View File

@@ -63,6 +63,9 @@ const useRoleSelectorStore = create((set, get) => ({
setDeleteType: (type) => set({ deleteType: type }),
// 同时更新角色和聊天
setSelectedRoleAndChat: (role, chat) => set({ selectedRole: role, selectedChat: chat }),
handleRenameRole: (oldName, newName) => {
const { roleData, selectedRole } = get();
if (newName && newName !== oldName) {
@@ -199,4 +202,4 @@ const useRoleSelectorStore = create((set, get) => ({
})
}));
export default useRoleSelectorStore;
export default useRoleSelectorStore;