完成聊天框功能开发
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user