Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d1be8991
authored
May 30, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】midjourney 提交任务回调 onDrawStart 、onDrawComplete
parent
82fbb5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/views/ai/image/midjourney/index.vue
+2
-2
No files found.
src/views/ai/image/midjourney/index.vue
View file @
d1be8991
...
@@ -129,7 +129,7 @@ const handlerGenerateImage = async () => {
...
@@ -129,7 +129,7 @@ const handlerGenerateImage = async () => {
// todo @范 图片生产逻辑
// todo @范 图片生产逻辑
try
{
try
{
// 回调
// 回调
//
emits('onDrawStart', selectModel.value.key)
emits
(
'onDrawStart'
,
selectModel
.
value
.
key
)
// 发送请求
// 发送请求
const
req
=
{
const
req
=
{
prompt
:
prompt
.
value
,
prompt
:
prompt
.
value
,
...
@@ -139,7 +139,7 @@ const handlerGenerateImage = async () => {
...
@@ -139,7 +139,7 @@ const handlerGenerateImage = async () => {
await
ImageApi
.
midjourneyImagine
(
req
)
await
ImageApi
.
midjourneyImagine
(
req
)
}
finally
{
}
finally
{
// 回调
// 回调
//
emits('onDrawComplete', selectModel.value.key)
emits
(
'onDrawComplete'
,
selectModel
.
value
.
key
)
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment