bugfix: design弹窗转产品图/编辑产品图的placeholder

This commit is contained in:
2025-11-25 15:07:27 +08:00
parent 1c264cfbd8
commit 4df9aaece5

View File

@@ -155,7 +155,7 @@
<textarea
ref="textareaRef"
class="textarea"
:placeholder="$t('Generate.inputContent1')"
:placeholder="inputPlaceholder"
@input="ifMaximumLength"
@keydown.enter.prevent="getPrductimg()"
v-model="productimgSearchName"
@@ -1288,6 +1288,15 @@ export default defineComponent({
'PoseTransfer'
)
})
const inputPlaceholder = computed(() => {
if (
productimg.scaleImageList[productimg.scaleImageIndex]?.resultType === 'Relight'
) {
return t('ProductImg.relightInput')
} else {
return t('ProductImg.productInput')
}
})
const showCompare = computed(() => {
// isComparison.value
@@ -1360,7 +1369,8 @@ export default defineComponent({
setNewVideoRef,
handlePlayNewVideo,
isNewVideoPlaying,
showDropdown
showDropdown,
inputPlaceholder
}
},
data() {