From c078f9dd938adf9ff84eca50d9116de002a1b5a2 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Thu, 20 Nov 2025 13:56:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E7=94=A8=E6=88=B7=E6=8C=87=E5=BC=95=20detail=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/DesignDetail.vue | 9 +++++++++ src/component/Detail/detailLeft/module/selectList.vue | 1 + src/component/home/index.vue | 2 +- src/component/home/tools/poseTransfer/index.vue | 10 +++++++++- .../home/tools/toProduct/PromptEditProduct.vue | 8 ++++++-- src/component/toolsPage/index.vue | 2 +- src/lang/cn.ts | 3 ++- src/lang/en.ts | 3 ++- src/router/index.ts | 2 +- 9 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index 915aa6a5..d887d1a2 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -61,6 +61,7 @@ {//系统sketch添加到library更新library + coverRevocation() detailDom.detailLeft.sketchSysToLibrary() } + const coverRevocation = ()=>{ + let itemDetail = JSON.parse(JSON.stringify(detailData.designDetail)) + let revocation = JSON.parse((sessionStorage.getItem("revocation") as any)) + revocation.splice(revocation.length-1,1,{designData:itemDetail,position:null}) + sessionStorage.setItem('revocation', JSON.stringify(revocation)); + sessionStorage.setItem('oppositeRevocation',JSON.stringify([])); + } onMounted(()=>{ window.addEventListener('resize', handleResize); }) diff --git a/src/component/Detail/detailLeft/module/selectList.vue b/src/component/Detail/detailLeft/module/selectList.vue index 489df33f..301bd3e8 100644 --- a/src/component/Detail/detailLeft/module/selectList.vue +++ b/src/component/Detail/detailLeft/module/selectList.vue @@ -118,6 +118,7 @@ export default defineComponent({ detailData.selectTitle = 'upload' } const openLibrary = ()=>{ + if(detailData.selectTitle == 'library')return detailData.selectTitle = 'library' getDetailListDom.libraryList.init() } diff --git a/src/component/home/index.vue b/src/component/home/index.vue index fceb79e9..45a0b998 100644 --- a/src/component/home/index.vue +++ b/src/component/home/index.vue @@ -226,7 +226,7 @@ export default defineComponent({ storeData.positionList = position store.commit('setProbject',storeData) // setChatData() - if(route.name == 'toolsPage'){ + if(route.name == 'tools'){ getCollection('tools',null) }else{ getCollection('design',null) diff --git a/src/component/home/tools/poseTransfer/index.vue b/src/component/home/tools/poseTransfer/index.vue index eaac8fca..20e8b914 100644 --- a/src/component/home/tools/poseTransfer/index.vue +++ b/src/component/home/tools/poseTransfer/index.vue @@ -168,7 +168,15 @@
-
{{ $t('ProductImg.Prompt') }}
+
+ {{ $t('ProductImg.Prompt') }} + + + +
diff --git a/src/component/home/tools/toProduct/PromptEditProduct.vue b/src/component/home/tools/toProduct/PromptEditProduct.vue index 806906b8..f387e9a9 100644 --- a/src/component/home/tools/toProduct/PromptEditProduct.vue +++ b/src/component/home/tools/toProduct/PromptEditProduct.vue @@ -84,7 +84,7 @@ @click.stop="handleDownload(item)" />
- {{ $t('ProductImg.EditGarmen') }}: + {{ promptPage == 3 ? $t('ProductImg.EditGarmen2') : $t('ProductImg.EditGarmen') }}:
{ if(status.value == 0){ status.value = 1 }else{ + const startIndex = (promptPage.value - 1) * 4; + if(startIndex + 4 >= promptList.value.length){ + return + } promptPage.value++ } } - if(promptPage.value > 0)presentList.value = setPresentList() + if(promptPage.value > 0)presentList.value = setPresentList(4) } diff --git a/src/component/toolsPage/index.vue b/src/component/toolsPage/index.vue index 086c74dd..8b3e72ed 100644 --- a/src/component/toolsPage/index.vue +++ b/src/component/toolsPage/index.vue @@ -100,7 +100,7 @@ export default defineComponent({ (query:any, oldQuery:any) => { if(oldQuery && query == oldQuery)return const key = Object.keys(query)?.[0] - if(route.name == 'toolsPage' && key){ + if(route.name == 'tools' && key){ data.openType = query[key] nextTick(()=>{ open(query[key]) diff --git a/src/lang/cn.ts b/src/lang/cn.ts index 12fd99bd..defe6c2a 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -288,7 +288,8 @@ export default { CopyFiled: '复制失败', noPrompt: '请输入提示词', OriginalImage: '原始图像', - EditGarmen: '您可以编辑这件服装', + EditGarmen: '您可以编辑这件模型', + EditGarmen2: '您可以编辑这件场景', Background: '白色背景', BackgroundColor: '纯色背景', ComplexBackground: '复杂背景', diff --git a/src/lang/en.ts b/src/lang/en.ts index 3862f568..7c83056d 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -298,7 +298,8 @@ export default { CopyFiled: 'Failed to copy', noPrompt: 'Please enter prompt', OriginalImage: 'Original Image', - EditGarmen: 'You can edit the garmen', + EditGarmen: 'You can edit the Model', + EditGarmen2: 'You can edit the Scene', Background: 'White Background', BackgroundColor: 'Background with Pure Color', ComplexBackground: 'with Complex Background', diff --git a/src/router/index.ts b/src/router/index.ts index a28a7f9d..1fe4d6b1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -67,7 +67,7 @@ const routes: Array = [ children: [ { path: "tools", - name: "toolsPage", + name: "tools", meta: { enter: "all",cache:true }, component: () => import("@/views/HomeView/Tools.vue"), },