forked from 77media/video-flow
无需触发应用剧本
This commit is contained in:
parent
826998fb70
commit
e60996febe
@ -121,7 +121,7 @@ export function useWorkflowData() {
|
|||||||
console.log('应用剧本');
|
console.log('应用剧本');
|
||||||
// 自动模式下 应用剧本;手动模式 需要点击 下一步 触发
|
// 自动模式下 应用剧本;手动模式 需要点击 下一步 触发
|
||||||
// 确保仅自动触发一次
|
// 确保仅自动触发一次
|
||||||
state.mode.includes('auto') && loadingText.current !== LOADING_TEXT_MAP.character && applyScript();
|
// state.mode.includes('auto') && loadingText.current !== LOADING_TEXT_MAP.character && applyScript();
|
||||||
loadingText.current = LOADING_TEXT_MAP.character;
|
loadingText.current = LOADING_TEXT_MAP.character;
|
||||||
} else {
|
} else {
|
||||||
loadingText.current = LOADING_TEXT_MAP.script;
|
loadingText.current = LOADING_TEXT_MAP.script;
|
||||||
|
|||||||
@ -116,7 +116,7 @@ export const ScriptRenderer: React.FC<ScriptRendererProps> = ({ data, setIsPause
|
|||||||
setAnyAttribute(block.id, text,from !== 'tab',(old: string)=>{
|
setAnyAttribute(block.id, text,from !== 'tab',(old: string)=>{
|
||||||
if(old!==text){
|
if(old!==text){
|
||||||
console.log('contentEditableRef---change?')
|
console.log('contentEditableRef---change?')
|
||||||
mode.includes('auto') && applyScript();
|
// mode.includes('auto') && applyScript();
|
||||||
setIsPauseWorkFlow(false);
|
setIsPauseWorkFlow(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -140,7 +140,7 @@ export const ScriptRenderer: React.FC<ScriptRendererProps> = ({ data, setIsPause
|
|||||||
from !== 'tab' && setIsPauseWorkFlow(true);
|
from !== 'tab' && setIsPauseWorkFlow(true);
|
||||||
setAnyAttribute('categories', value.join(','),from !== 'tab',(old: string)=>{
|
setAnyAttribute('categories', value.join(','),from !== 'tab',(old: string)=>{
|
||||||
if(old!==value.join(',')){
|
if(old!==value.join(',')){
|
||||||
mode.includes('auto') && applyScript();
|
// mode.includes('auto') && applyScript();
|
||||||
setIsPauseWorkFlow(false);
|
setIsPauseWorkFlow(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user