fix(ui): clear regenerating status when stage stops running
| | |
| | | }); |
| | | }, [allAssets, regeneratingIds.size]); |
| | | |
| | | useEffect(() => { |
| | | if (state.status !== 'running') { |
| | | setRegeneratingIds(new Set()); |
| | | regenerationStartCounts.current = {}; |
| | | } |
| | | }, [state.status]); |
| | | |
| | | const hasChars = characters.length > 0; |
| | | const hasSets = settingsData.length > 0; |
| | | |
| | |
| | | }); |
| | | }, [scenes, regeneratingIds.size]); |
| | | |
| | | useEffect(() => { |
| | | if (state.status !== 'running') { |
| | | setRegeneratingIds(new Set()); |
| | | regenerationStartCounts.current = {}; |
| | | } |
| | | }, [state.status]); |
| | | |
| | | const hasScenes = scenes.length > 0; |
| | | |
| | | // 保存单个提示词到后端 JSON |
| | |
| | | // eslint-disable-next-line react-hooks/exhaustive-deps |
| | | }, [clips]); |
| | | |
| | | useEffect(() => { |
| | | if (state.status !== 'running') { |
| | | setRegeneratingIds(new Set()); |
| | | regenerationStartCounts.current = {}; |
| | | } |
| | | }, [state.status]); |
| | | |
| | | const hasClips = clips.length > 0; |
| | | const canEdit = state.status === 'waiting' || state.status === 'completed'; |
| | | |