This commit is contained in:
李志鹏
2025-12-10 15:33:05 +08:00
parent aad6919ec3
commit 17edeef461
3 changed files with 11 additions and 8 deletions

View File

@@ -458,6 +458,7 @@ export default defineComponent({
message.info(t('newScaleImage.jsContent2')) message.info(t('newScaleImage.jsContent2'))
return return
} }
store.state.Workspace.cachedRoutes = [];
let id = await getWorks(imgData.scaleImageData.id) let id = await getWorks(imgData.scaleImageData.id)
await router.push(`/home/history/${id}`) await router.push(`/home/history/${id}`)
store.commit('setChooseIsDesign',false) store.commit('setChooseIsDesign',false)

View File

@@ -31,6 +31,7 @@
<div class="collectionBox"> <div class="collectionBox">
<toProductRelight ref="toProduct" <toProductRelight ref="toProduct"
:productimgMenu="{value:'ToProductImage',label:$t('ProductImg.ProductImage')}" :productimgMenu="{value:'ToProductImage',label:$t('ProductImg.ProductImage')}"
:isDesignPage="true"
@setLike="designLike" @setLike="designLike"
class="toProduct" class="toProduct"
:source="source" :source="source"
@@ -40,6 +41,7 @@
></toProductRelight> ></toProductRelight>
<toProductRelight ref="relight" <toProductRelight ref="relight"
:productimgMenu="{value:'Relight',label:$t('ProductImg.Relight')}" :productimgMenu="{value:'Relight',label:$t('ProductImg.Relight')}"
:isDesignPage="true"
@setLike="designLike" @setLike="designLike"
class="relight" class="relight"
:source="source" :source="source"
@@ -47,7 +49,7 @@
:isState="openType =='relight'" :isState="openType =='relight'"
v-if="openType == 'relight'" v-if="openType == 'relight'"
></toProductRelight> ></toProductRelight>
<poseTransfer v-if="openType == 'poseTransfer'" @unLike="unLike" :source="source" @setLike="designLike" ref="poseTransfer"></poseTransfer> <poseTransfer v-if="openType == 'poseTransfer'" @unLike="unLike" :source="source" :isDesignPage="true" @setLike="designLike" ref="poseTransfer"></poseTransfer>
<div v-if="openType == 'editCanvas'" class="canvasBox" :class="{editCanvas:openType == 'editCanvas'}"> <div v-if="openType == 'editCanvas'" class="canvasBox" :class="{editCanvas:openType == 'editCanvas'}">
<div class="canvas" ref="canvasBox"> <div class="canvas" ref="canvasBox">
<editCanvas <editCanvas

View File

@@ -1101,13 +1101,13 @@ export default defineComponent({
const showPromptAssist = ref(false) const showPromptAssist = ref(false)
const handleClickAssistBtn = () => { const handleClickAssistBtn = () => {
const { httpType } = store.state.Workspace.probjects // const { httpType } = store.state.Workspace.probjects
const isSingleDesign = httpType === 'SINGLE_DESIGN' // const isSingleDesign = httpType === 'SINGLE_DESIGN'
if (props.isDesignPage && !isSingleDesign) { // if (props.isDesignPage && !isSingleDesign) {
const promptText = t('ProductImg.Series') // const promptText = t('ProductImg.Series')
productImgData.searchName[props.productimgMenu.value] = promptText // productImgData.searchName[props.productimgMenu.value] = promptText
return // return
} // }
showPromptAssist.value = true showPromptAssist.value = true
} }