读取本地chatandrole完成并优化排列

This commit is contained in:
2026-03-19 23:01:38 +08:00
parent 91d11abe90
commit a371039ee6
7 changed files with 302 additions and 214 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import Toolbar from './components/Toolbar/Toolbar';
import Toolbar from './components/ToolBar/ToolBar';
import ChatBox from './components/ChatBox/ChatBox';
import DicePanel from './components/DicePanel/DicePanel';
import ImageDisplay from './components/ImageDisplay/ImageDisplay';
@@ -7,7 +7,6 @@ import PresetPanel from './components/PresetPanel/PresetPanel';
import './index.css';
function App() {
const [isToolbarExpanded, setIsToolbarExpanded] = useState(false);
const [selectedRole, setSelectedRole] = useState(null);
const [selectedChat, setSelectedChat] = useState(null);
@@ -24,11 +23,8 @@ function App() {
return (
<div className="app">
<Toolbar
isExpanded={isToolbarExpanded}
onToggle={() => setIsToolbarExpanded(!isToolbarExpanded)}
onRoleChange={handleRoleChange}
onChatChange={handleChatChange}
selectedRole={selectedRole}
/>
{/* 主内容容器 */}