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
0b8301cc
authored
May 28, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】Ai Image 列表增加自动刷新
parent
f74e8e66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/views/ai/image/ImageTask.vue
+10
-1
src/views/ai/image/index.vue
+0
-2
No files found.
src/views/ai/image/ImageTask.vue
View file @
0b8301cc
...
...
@@ -17,6 +17,7 @@ import ImageTaskCard from './ImageTaskCard.vue'
import
{
bool
}
from
"vue-types"
;
const
imageList
=
ref
<
ImageDetailVO
[]
>
([])
// image 列表
const
imageListInterval
=
ref
<
any
>
()
// image 列表定时器,刷新列表
const
showTaskDetail
=
ref
<
bool
>
(
false
)
// 是否显示 task 详情
/**
...
...
@@ -56,12 +57,20 @@ const handlerImageBtnClick = async (type, imageDetail: ImageDetailVO) => {
await
handlerDrawerOpen
()
}
}
//
defineExpose
({
getImageList
})
//
onMounted
(
async
()
=>
{
// 获取 image 列表
await
getImageList
()
// 自动刷新 image 列表
imageListInterval
.
value
=
setInterval
(
async
()
=>
{
await
getImageList
()
},
3000
)
})
//
onUnmounted
(
async
()
=>
{
})
</
script
>
...
...
src/views/ai/image/index.vue
View file @
0b8301cc
...
...
@@ -29,7 +29,6 @@ const selectModel = ref('DALL3绘画')
const
modelOptions
=
[
'DALL3绘画'
,
'MJ绘画'
]
const
drawIn
=
ref
<
boolean
>
(
false
)
// 生成中
/**
* 绘画 - start
*/
...
...
@@ -101,5 +100,4 @@ onMounted( async () => {
}
}
</
style
>
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