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
f19e8c4d
authored
Jun 30, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改todo】增加 sd 各种参数
parent
f98f794f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
186 additions
and
78 deletions
+186
-78
src/api/ai/image/index.ts
+1
-1
src/views/ai/image/index.vue
+1
-1
src/views/ai/image/stable-diffusion/index.vue
+184
-76
No files found.
src/api/ai/image/index.ts
View file @
f19e8c4d
...
...
@@ -66,7 +66,7 @@ export const ImageApi = {
},
// 获取【我的】绘图记录列表
getImageListMyByIds
:
async
(
ids
:
number
[])
=>
{
return
await
request
.
get
({
url
:
`/ai/image/
get-m
y-ids`
,
params
:
{
ids
:
ids
.
join
(
','
)
}
})
return
await
request
.
get
({
url
:
`/ai/image/
my-list-b
y-ids`
,
params
:
{
ids
:
ids
.
join
(
','
)
}
})
},
// 生成图片
drawImage
:
async
(
data
:
ImageDrawReqVO
)
=>
{
...
...
src/views/ai/image/index.vue
View file @
f19e8c4d
...
...
@@ -11,7 +11,7 @@
@
on-draw-start=
"handlerDrawStart"
@
on-draw-complete=
"handlerDrawComplete"
/>
<Midjourney
v-if=
"selectModel === 'MJ绘画'"
/>
<StableDiffusion
v-if=
"selectModel === 'Stable Diffusion'"
/>
<StableDiffusion
v-if=
"selectModel === 'Stable Diffusion'"
@
on-draw-complete=
"handlerDrawComplete"
/>
</div>
</div>
<div
class=
"main"
>
...
...
src/views/ai/image/stable-diffusion/index.vue
View file @
f19e8c4d
This diff is collapsed.
Click to expand it.
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