forked from 77media/video-flow
修复 重复弹出
This commit is contained in:
parent
7b7a93832d
commit
adb6f97366
@ -113,13 +113,14 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
if (taskObject.final.url && editingNotificationKey.current && isHandleEdit) {
|
if (taskObject.final.url && editingNotificationKey.current && isHandleEdit) {
|
||||||
// 更新通知状态为完成
|
// 更新通知状态为完成
|
||||||
showEditingNotification({
|
showEditingNotification({
|
||||||
|
isCompleted: true,
|
||||||
description: 'Performing intelligent editing...',
|
description: 'Performing intelligent editing...',
|
||||||
successDescription: 'Editing successful',
|
successDescription: 'Editing successful',
|
||||||
timeoutDescription: 'Editing failed, please try again',
|
timeoutDescription: 'Editing failed, please try again',
|
||||||
timeout: 5 * 60 * 1000,
|
timeout: 5 * 60 * 1000,
|
||||||
key: editingNotificationKey.current,
|
key: editingNotificationKey.current,
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
console.log('编辑完成');
|
console.log('Editing successful');
|
||||||
localStorage.setItem(`isLoaded_plan_${episodeId}`, 'true');
|
localStorage.setItem(`isLoaded_plan_${episodeId}`, 'true');
|
||||||
// 3秒后关闭通知
|
// 3秒后关闭通知
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user