This commit is contained in:
X1627315083@163.com
2026-04-14 14:19:23 +08:00
parent 1aa9119f43
commit 85b47e3654
4 changed files with 34 additions and 4 deletions

View File

@@ -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 线稿图上色的参数

View File

@@ -80,7 +80,7 @@
> .shortcut-list {
display: flex;
flex-wrap: wrap;
gap: 10px 4px;
gap: 10px 3px;
user-select: none;
> .item {
display: flex;

View File

@@ -184,7 +184,7 @@
}
])
const onPreview = (item: any) => {
if(data.superiorNodeType == NODE_DATATYPE.TO_3D_MODEL){
if(data.superiorNodeType == NODE_DATATYPE.TO_3D_MODEL && tier.value != 0){
openThreeModelPreview({
glbPath:item?.glbPath,
glbInfoObj:item?.glbInfoObj,

View File

@@ -34,10 +34,10 @@ const {} = toRefs(data);
<div class="detail">
<div class="name">
<div class="title fs18">
Sofa
3D Asset
</div>
<div class="fs14 c66">
Model Name
File Format:glb.
</div>
</div>
<div class="fs14 c18">