mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: use immediate watcher to handle already-terminal downloads
Vue watch() is lazy by default — if the WS completion event
arrives before the watcher is registered, the callback never
fires. Adding { immediate: true } settles the existing state
on watcher creation.
This commit is contained in:
@@ -275,7 +275,8 @@ export function useUploadModelWizard(modelTypes: Ref<ModelTypeOption[]>) {
|
||||
stopAsyncWatch?.()
|
||||
stopAsyncWatch = undefined
|
||||
}
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
} else {
|
||||
uploadStatus.value = 'success'
|
||||
|
||||
Reference in New Issue
Block a user