fix
This commit is contained in:
@@ -107,6 +107,36 @@ export const toRealStyleApi = (data:toRealStyleData) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 图片转真是风格-变体
|
||||||
|
* @param data 图片转真是风格-变体的参数
|
||||||
|
* @param data.sketchId sketch id
|
||||||
|
* @param data.imageUrl 进行生成的图片。minio地址和正常地址都可以
|
||||||
|
* @param data.mode 选择的模型
|
||||||
|
* @param data.size 生成图片的大小
|
||||||
|
* @param data.userPrompt 生成图片的提示词
|
||||||
|
* @returns 图片转真是风格
|
||||||
|
*/
|
||||||
|
export interface toRealStyleData {
|
||||||
|
sketchId?: string
|
||||||
|
imageUrl?: string
|
||||||
|
mode?: string
|
||||||
|
size?: string
|
||||||
|
userPrompt?: string
|
||||||
|
}
|
||||||
|
export const toRealVariantsApi = (data:toRealStyleData) => {
|
||||||
|
return request({
|
||||||
|
url: `/api/image/to-real-style`,
|
||||||
|
method: 'post',
|
||||||
|
data:{
|
||||||
|
sketchId: data.sketchId,
|
||||||
|
imageUrl: data.imageUrl,
|
||||||
|
mode: data.mode,
|
||||||
|
size: data.size,
|
||||||
|
userPrompt: data.userPrompt
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 线稿图上色
|
* 线稿图上色
|
||||||
* @param data 线稿图上色的参数
|
* @param data 线稿图上色的参数
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
> .shortcut-list {
|
> .shortcut-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 10px 4px;
|
gap: 10px 3px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
> .item {
|
> .item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -184,7 +184,7 @@
|
|||||||
}
|
}
|
||||||
])
|
])
|
||||||
const onPreview = (item: any) => {
|
const onPreview = (item: any) => {
|
||||||
if(data.superiorNodeType == NODE_DATATYPE.TO_3D_MODEL){
|
if(data.superiorNodeType == NODE_DATATYPE.TO_3D_MODEL && tier.value != 0){
|
||||||
openThreeModelPreview({
|
openThreeModelPreview({
|
||||||
glbPath:item?.glbPath,
|
glbPath:item?.glbPath,
|
||||||
glbInfoObj:item?.glbInfoObj,
|
glbInfoObj:item?.glbInfoObj,
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ const {} = toRefs(data);
|
|||||||
<div class="detail">
|
<div class="detail">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="title fs18">
|
<div class="title fs18">
|
||||||
Sofa
|
3D Asset
|
||||||
</div>
|
</div>
|
||||||
<div class="fs14 c66">
|
<div class="fs14 c66">
|
||||||
Model Name
|
File Format:glb.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fs14 c18">
|
<div class="fs14 c18">
|
||||||
|
|||||||
Reference in New Issue
Block a user