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:
dante01yoon
2026-04-03 23:34:28 +09:00
parent 84c6ef1236
commit 021c17912f

View File

@@ -275,7 +275,8 @@ export function useUploadModelWizard(modelTypes: Ref<ModelTypeOption[]>) {
stopAsyncWatch?.()
stopAsyncWatch = undefined
}
}
},
{ immediate: true }
)
} else {
uploadStatus.value = 'success'