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
824fb4d5
authored
May 27, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】Image AI 监听 dall 生成完成,刷新图片列表
parent
d74677ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
src/views/ai/image/index.vue
+24
-5
No files found.
src/views/ai/image/index.vue
View file @
824fb4d5
...
@@ -6,16 +6,13 @@
...
@@ -6,16 +6,13 @@
<el-segmented
v-model=
"selectModel"
:options=
"modelOptions"
/>
<el-segmented
v-model=
"selectModel"
:options=
"modelOptions"
/>
</div>
</div>
<div
class=
"modal-switch-container"
>
<div
class=
"modal-switch-container"
>
<Dall3
v-if=
"selectModel === 'DALL3绘画'"
/>
<Dall3
v-if=
"selectModel === 'DALL3绘画'"
@
on-draw-start=
"handlerDrawStart"
@
on-draw-complete=
"handlerDrawComplete"
/>
<Midjourney
v-if=
"selectModel === 'MJ绘画'"
/>
<Midjourney
v-if=
"selectModel === 'MJ绘画'"
/>
</div>
</div>
</div>
</div>
<div
class=
"main"
>
<div
class=
"main"
>
<ImageTask
/>
<ImageTask
ref=
"imageTaskRef"
/>
</div>
</div>
<!--
<div
class=
"right"
>
-->
<!-- right-->
<!--
</div>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -24,11 +21,33 @@ import Dall3 from './dall3/index.vue'
...
@@ -24,11 +21,33 @@ import Dall3 from './dall3/index.vue'
import
Midjourney
from
'./midjourney/index.vue'
import
Midjourney
from
'./midjourney/index.vue'
import
ImageTask
from
'./ImageTask.vue'
import
ImageTask
from
'./ImageTask.vue'
// ref
const
imageTaskRef
=
ref
<
any
>
()
// image task ref
// 定义属性
// 定义属性
const
selectModel
=
ref
(
'DALL3绘画'
)
const
selectModel
=
ref
(
'DALL3绘画'
)
const
modelOptions
=
[
'DALL3绘画'
,
'MJ绘画'
]
const
modelOptions
=
[
'DALL3绘画'
,
'MJ绘画'
]
/**
* 绘画 - start
*/
const
handlerDrawStart
=
async
(
type
)
=>
{
// todo
}
/**
* 绘画 - complete
*/
const
handlerDrawComplete
=
async
(
type
)
=>
{
// todo
await
imageTaskRef
.
value
.
getImageList
()
}
//
onMounted
(
async
()
=>
{
})
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
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