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
f74e8e66
authored
May 27, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】AI Image 增加生成中 ref
parent
805745f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/views/ai/image/index.vue
+3
-0
No files found.
src/views/ai/image/index.vue
View file @
f74e8e66
...
...
@@ -27,6 +27,7 @@ const imageTaskRef = ref<any>() // image task ref
// 定义属性
const
selectModel
=
ref
(
'DALL3绘画'
)
const
modelOptions
=
[
'DALL3绘画'
,
'MJ绘画'
]
const
drawIn
=
ref
<
boolean
>
(
false
)
// 生成中
/**
...
...
@@ -34,12 +35,14 @@ const modelOptions = ['DALL3绘画', 'MJ绘画']
*/
const
handlerDrawStart
=
async
(
type
)
=>
{
// todo
drawIn
.
value
=
true
}
/**
* 绘画 - complete
*/
const
handlerDrawComplete
=
async
(
type
)
=>
{
drawIn
.
value
=
false
// todo
await
imageTaskRef
.
value
.
getImageList
()
}
...
...
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