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
16d53bbf
authored
Jul 02, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "【sd】增加中文判断"
This reverts commit 47636a8a87a3f4b4d4e1bd36ca05eb65b9a66167.
parent
9c435940
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
+1
-11
src/views/ai/image/midjourney/index.vue
+1
-11
No files found.
src/views/ai/image/midjourney/index.vue
View file @
16d53bbf
...
@@ -88,14 +88,6 @@
...
@@ -88,14 +88,6 @@
</div>
</div>
</el-space>
</el-space>
</div>
</div>
<div
class=
"model"
>
<div>
<el-text
tag=
"b"
>
参考图
</el-text>
</div>
<el-space
wrap
class=
"model-list"
>
<UploadImg
v-model=
"referImage"
height=
"80px"
width=
"80px"
/>
</el-space>
</div>
<div
class=
"btns"
>
<div
class=
"btns"
>
<!--
<el-button
size=
"large"
round
>
重置内容
</el-button>
-->
<!--
<el-button
size=
"large"
round
>
重置内容
</el-button>
-->
<el-button
type=
"primary"
size=
"large"
round
@
click=
"handlerGenerateImage"
>
生成内容
</el-button>
<el-button
type=
"primary"
size=
"large"
round
@
click=
"handlerGenerateImage"
>
生成内容
</el-button>
...
@@ -126,7 +118,6 @@ interface ImageSizeVO {
...
@@ -126,7 +118,6 @@ interface ImageSizeVO {
// 定义属性
// 定义属性
const
prompt
=
ref
<
string
>
(
''
)
// 提示词
const
prompt
=
ref
<
string
>
(
''
)
// 提示词
const
referImage
=
ref
<
any
>
()
// 参考图
const
selectHotWord
=
ref
<
string
>
(
''
)
// 选中的热词
const
selectHotWord
=
ref
<
string
>
(
''
)
// 选中的热词
const
hotWords
=
ref
<
string
[]
>
([
'中国旗袍'
,
'古装美女'
,
'卡通头像'
,
'机甲战士'
,
'童话小屋'
,
'中国长城'
])
// 热词
const
hotWords
=
ref
<
string
[]
>
([
'中国旗袍'
,
'古装美女'
,
'卡通头像'
,
'机甲战士'
,
'童话小屋'
,
'中国长城'
])
// 热词
const
selectModel
=
ref
<
any
>
()
// 选中的热词
const
selectModel
=
ref
<
any
>
()
// 选中的热词
...
@@ -256,7 +247,6 @@ const handlerGenerateImage = async () => {
...
@@ -256,7 +247,6 @@ const handlerGenerateImage = async () => {
await
message
.
confirm
(
`确认生成内容?`
)
await
message
.
confirm
(
`确认生成内容?`
)
// todo @范 图片生产逻辑
// todo @范 图片生产逻辑
try
{
try
{
console
.
log
(
'referImage.value'
,
referImage
.
value
)
// 回调
// 回调
emits
(
'onDrawStart'
,
selectModel
.
value
.
key
)
emits
(
'onDrawStart'
,
selectModel
.
value
.
key
)
// 发送请求
// 发送请求
...
@@ -266,7 +256,7 @@ const handlerGenerateImage = async () => {
...
@@ -266,7 +256,7 @@ const handlerGenerateImage = async () => {
width
:
selectImageSize
.
value
.
width
,
width
:
selectImageSize
.
value
.
width
,
height
:
selectImageSize
.
value
.
height
,
height
:
selectImageSize
.
value
.
height
,
version
:
selectVersion
.
value
,
version
:
selectVersion
.
value
,
referImageUrl
:
referImage
.
value
,
base64Array
:
[]
,
}
as
ImageMidjourneyImagineReqVO
}
as
ImageMidjourneyImagineReqVO
await
ImageApi
.
midjourneyImagine
(
req
)
await
ImageApi
.
midjourneyImagine
(
req
)
}
finally
{
}
finally
{
...
...
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