mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
await queue prompt
This commit is contained in:
@@ -135,12 +135,12 @@ const hasPendingTasks = computed(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const commandStore = useCommandStore()
|
const commandStore = useCommandStore()
|
||||||
const queuePrompt = (e: Event) => {
|
const queuePrompt = async (e: Event) => {
|
||||||
const commandId =
|
const commandId =
|
||||||
'shiftKey' in e && e.shiftKey
|
'shiftKey' in e && e.shiftKey
|
||||||
? 'Comfy.QueuePromptFront'
|
? 'Comfy.QueuePromptFront'
|
||||||
: 'Comfy.QueuePrompt'
|
: 'Comfy.QueuePrompt'
|
||||||
commandStore.execute(commandId)
|
await commandStore.execute(commandId)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user