feat: life-script AI 运行时和视图优化
This commit is contained in:
@@ -18,7 +18,7 @@ const PathView = ({ onGoToScript }) => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
|
||||
const [streamPath, setStreamPath] = useState('');
|
||||
const pathWriter = useTypewriterStream({ interval: 18, step: 1 });
|
||||
const pathWriter = useTypewriterStream({ interval: 30, step: 1 });
|
||||
|
||||
const selectedScript = getSelectedScript();
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ const ScriptView = ({ onOpenProfile }) => {
|
||||
const [length, setLength] = useState(scriptLengths[0].value);
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [streamContent, setStreamContent] = useState('');
|
||||
const scriptWriter = useTypewriterStream({ interval: 18, step: 1 });
|
||||
const scriptWriter = useTypewriterStream({ interval: 30, step: 1 });
|
||||
|
||||
// 编辑模态框状态
|
||||
const [isEditModalOpen, setIsEditModalOpen] = useState(false);
|
||||
|
||||
@@ -94,7 +94,7 @@ const TimelineView = () => {
|
||||
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [streamFeedback, setStreamFeedback] = useState('');
|
||||
const feedbackWriter = useTypewriterStream({ interval: 18, step: 1 });
|
||||
const feedbackWriter = useTypewriterStream({ interval: 30, step: 1 });
|
||||
|
||||
// 编辑模式状态:null 表示新增模式,有值表示编辑模式(存储事件 ID)
|
||||
const [editingEventId, setEditingEventId] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user