tools页面加入缓存
This commit is contained in:
@@ -5,18 +5,18 @@
|
||||
:productimgMenu="{value:'ToProductImage',label:$t('ProductImg.ProductImage')}"
|
||||
class="toProduct"
|
||||
:isState="openType =='toProduct'"
|
||||
v-if="openType == 'toProduct'"
|
||||
v-if="openType == 'toProduct' || currentProjectPath.includes('toProduct')"
|
||||
></toProduct>
|
||||
<toProduct ref="relight"
|
||||
:productimgMenu="{value:'Relight',label:$t('ProductImg.Relight')}"
|
||||
class="relight"
|
||||
:isState="openType =='relight'"
|
||||
v-if="openType == 'relight'"
|
||||
v-if="openType == 'relight' || currentProjectPath.includes('relight')"
|
||||
></toProduct>
|
||||
<poseTransfer v-if="openType == 'poseTransfer'" ref="poseTransfer"></poseTransfer>
|
||||
<deReconstruction v-if="openType == 'deReconstruction'" ref="deReconstruction"></deReconstruction>
|
||||
<patternMaking3D v-if="openType == 'patternMaking3D'" ref="patternMaking3D"></patternMaking3D>
|
||||
<canvasUpload v-if="openType == 'canvasUpload'" ref="canvasUpload" @canvasChangeGetJSON="canvasChangeGetJSON" :isSubmitCanvasJSON="true"></canvasUpload>
|
||||
<poseTransfer v-if="openType == 'poseTransfer' || currentProjectPath.includes('poseTransfer')" ref="poseTransfer"></poseTransfer>
|
||||
<deReconstruction v-if="openType == 'deReconstruction' || currentProjectPath.includes('deReconstruction')" ref="deReconstruction"></deReconstruction>
|
||||
<patternMaking3D v-if="openType == 'patternMaking3D' || currentProjectPath.includes('patternMaking3D')" ref="patternMaking3D"></patternMaking3D>
|
||||
<canvasUpload v-if="openType == 'canvasUpload' || currentProjectPath.includes('canvasUpload')" ref="canvasUpload" @canvasChangeGetJSON="canvasChangeGetJSON" :isSubmitCanvasJSON="true"></canvasUpload>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -62,7 +62,10 @@ export default defineComponent({
|
||||
width: 800,
|
||||
height: 600,
|
||||
backgroundColor: "#f8f8f8",
|
||||
}
|
||||
},
|
||||
currentProjectPath:computed(() => {
|
||||
return store.state.Workspace.projectPath
|
||||
})
|
||||
})
|
||||
const dataDom:any = reactive({
|
||||
toProduct:null as any,
|
||||
@@ -79,7 +82,6 @@ export default defineComponent({
|
||||
const setIsShowMark = (boolean:boolean)=>{
|
||||
data.isShowMark = boolean
|
||||
}
|
||||
|
||||
let settingGetHistory:any = inject('settingGetHistory')
|
||||
const open = (str:any)=>{
|
||||
nextTick(()=>{
|
||||
@@ -92,7 +94,7 @@ export default defineComponent({
|
||||
(query:any, oldQuery:any) => {
|
||||
if(oldQuery && query == oldQuery)return
|
||||
const key = Object.keys(query)?.[0]
|
||||
if(route.name == 'tools' && key){
|
||||
if(route.name == 'toolsPage' && key){
|
||||
data.openType = query[key]
|
||||
nextTick(()=>{
|
||||
open(query[key])
|
||||
|
||||
Reference in New Issue
Block a user