feat: 生成时提示上传图片
This commit is contained in:
@@ -441,7 +441,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
const openSetData = (designList: any) => {
|
||||
console.log('重置页面------------')
|
||||
if (props.isDesignPage) {
|
||||
//标识design页面打开的tools
|
||||
data.fileList = designList
|
||||
@@ -518,7 +517,12 @@ export default defineComponent({
|
||||
}, 200)
|
||||
}
|
||||
const getgenerate = async () => {
|
||||
if (!data.selectImg.minioUrl) return message.info(t('ProductImg.jsContent2'))
|
||||
if (videoType.value === 3 && !data.lastSelectImg.minioUrl) {
|
||||
message.info(t('poseTransfer.NeedLastFrame'))
|
||||
return
|
||||
}
|
||||
if (!data.selectImg.minioUrl) return message.info(t('poseTransfer.NeedFirstFrame'))
|
||||
debugger
|
||||
if (data.isGenerate) return
|
||||
await new Promise((res, reject) => {
|
||||
Modal.confirm({
|
||||
@@ -952,7 +956,6 @@ export default defineComponent({
|
||||
lastFrameList.value = store.state.HomeStoreModule.uploadElement.filter(
|
||||
item => item.frameType === 'last'
|
||||
)
|
||||
console.log('fileList',data.fileList)
|
||||
// 更新 showFirstFrameList 中项的选中状态
|
||||
showFirstFrameList.value.forEach((listItem: any) => {
|
||||
if (listItem.id == data.selectImg.id) {
|
||||
@@ -963,7 +966,7 @@ export default defineComponent({
|
||||
})
|
||||
},
|
||||
{
|
||||
immediate:true
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -295,6 +295,8 @@ export default {
|
||||
GeneratedVideo: '生成的视频',
|
||||
hint: '将这张图像转化为一张逼真、达到工作室水准的照片。在生活中真实存在的人',
|
||||
jsContent1: '生成视频预计需要三分钟,请问是否继续',
|
||||
NeedFirstFrame:'请选择首帧图片',
|
||||
NeedLastFrame:'请选择尾帧图片',
|
||||
SingleGarment:
|
||||
'专业产品摄影:服装展示于隐形模特上,模特不可见。完整保留设计细节——所有图案、颜色、质地及细节特征。', // 单品样衣
|
||||
SingleChildTryOn:
|
||||
|
||||
@@ -305,6 +305,8 @@ export default {
|
||||
GeneratedVideo: 'Generated Video',
|
||||
hint: 'Transform this image into a realistic, studio-quality photograph. To the real photo real people',
|
||||
jsContent1: 'Video generation will take approximately 3 minutes. Continue?',
|
||||
NeedFirstFrame: 'Please select the first frame image',
|
||||
NeedLastFrame: 'Please select the last frame image',
|
||||
SingleGarment:
|
||||
'Professional product photo: garment on invisible mannequin, no model visible. Preserve exact design - all patterns, colors, textures, details.', // 单品样衣
|
||||
SingleChildTryOn:
|
||||
@@ -332,7 +334,8 @@ export default {
|
||||
firstAndLastFramePlaceholder1: '[Camera Movement]',
|
||||
firstAndLastFrameText2: 'to follow the motion, under',
|
||||
firstAndLastFramePlaceholder2: '[Light]',
|
||||
firstAndLastFrameText3: ', maintaining full consistency of model identity, styling, and outfit across all frames.',
|
||||
firstAndLastFrameText3:
|
||||
', maintaining full consistency of model identity, styling, and outfit across all frames.',
|
||||
firstFrameText1: 'Set the',
|
||||
firstFramePlaceholder1: '[Scene]',
|
||||
firstFrameText2: ', where the model',
|
||||
|
||||
Reference in New Issue
Block a user