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
79819aed
authored
Jun 18, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】midjourney button 操作二次确认
parent
efcf64ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/views/ai/image/ImageTaskCard.vue
+4
-2
No files found.
src/views/ai/image/ImageTaskCard.vue
View file @
79819aed
...
@@ -34,11 +34,11 @@
...
@@ -34,11 +34,11 @@
import
{
Delete
,
Download
,
More
}
from
"@element-plus/icons-vue"
;
import
{
Delete
,
Download
,
More
}
from
"@element-plus/icons-vue"
;
import
{
ImageDetailVO
,
ImageMjButtonsVO
}
from
"@/api/ai/image"
;
import
{
ImageDetailVO
,
ImageMjButtonsVO
}
from
"@/api/ai/image"
;
import
{
PropType
}
from
"vue"
;
import
{
PropType
}
from
"vue"
;
import
{
ElLoading
}
from
"element-plus"
;
import
{
ElLoading
,
ElMessageBox
}
from
"element-plus"
;
const
cardImageRef
=
ref
<
any
>
()
// 卡片 image ref
const
cardImageRef
=
ref
<
any
>
()
// 卡片 image ref
const
cardImageLoadingInstance
=
ref
<
any
>
()
// 卡片 image ref
const
cardImageLoadingInstance
=
ref
<
any
>
()
// 卡片 image ref
const
message
=
useMessage
()
const
props
=
defineProps
({
const
props
=
defineProps
({
imageDetail
:
{
imageDetail
:
{
type
:
Object
as
PropType
<
ImageDetailVO
>
,
type
:
Object
as
PropType
<
ImageDetailVO
>
,
...
@@ -68,6 +68,8 @@ const handlerLoading = async (status: number) => {
...
@@ -68,6 +68,8 @@ const handlerLoading = async (status: number) => {
/** mj 按钮 click */
/** mj 按钮 click */
const
handlerMjBtnClick
=
async
(
button
:
ImageMjButtonsVO
)
=>
{
const
handlerMjBtnClick
=
async
(
button
:
ImageMjButtonsVO
)
=>
{
// 确认窗体
await
message
.
confirm
(
`确认操作 "
${
button
.
label
}
${
button
.
emoji
}
" ?`
)
emits
(
'onMjBtnClick'
,
button
,
props
.
imageDetail
)
emits
(
'onMjBtnClick'
,
button
,
props
.
imageDetail
)
}
}
...
...
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