fix
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
:clothing-image-opts="{
|
||||
imageMode:'contains',
|
||||
}"
|
||||
:hideCanvas="hideCanvas"
|
||||
:hideCanvas="hideCanvas && !isEditPattern"
|
||||
ref="editCanvas">
|
||||
</editCanvas>
|
||||
<!-- <canvasContent ref="canvasContent"></canvasContent> -->
|
||||
@@ -34,7 +34,7 @@
|
||||
:clothing-image-opts="{
|
||||
imageMode:'contains',
|
||||
}"
|
||||
:hideCanvas="hideCanvas"
|
||||
:hideCanvas="hideCanvas && !isEditPattern"
|
||||
ref="editCanvasBackFront">
|
||||
</editCanvas>
|
||||
</div>
|
||||
@@ -117,7 +117,7 @@ export default defineComponent({
|
||||
getCanvasIfEdit:inject('getCanvasIfEdit')as any,
|
||||
canvasInstance:null as any,
|
||||
canvasJSON:'',
|
||||
hideCanvas: computed(()=>(store.state.Workspace.projectPath !== route.fullPath && props.isEditPattern)),
|
||||
hideCanvas: computed(()=>(store.state.Workspace.projectPath !== route.fullPath)),
|
||||
otherData:computed(()=>({
|
||||
canvasId: store.state.DesignDetail.selectDetail.canvasId,
|
||||
color: store.state.DesignDetail.selectDetail.color,
|
||||
@@ -340,7 +340,6 @@ export default defineComponent({
|
||||
const canvasLoadJsonSuccess = async ()=>{
|
||||
let otherData = await props.updateOtherLayers()
|
||||
await updateOtherLayers(otherData)
|
||||
|
||||
if(detailData.changeSketchUpdateFrontBack){
|
||||
await detailData.changeSketchUpdateFrontBack()
|
||||
detailData.changeSketchUpdateFrontBack = null
|
||||
|
||||
@@ -102,6 +102,7 @@ export default defineComponent({
|
||||
}
|
||||
}).then((rv)=>{
|
||||
if(rv)store.commit('DesignDetail/setDesignColthes',item.id)
|
||||
console.log(JSON.parse(JSON.stringify(item)),'==========')
|
||||
})
|
||||
}
|
||||
const deleteDetailItem = (id:number)=>{
|
||||
|
||||
@@ -175,12 +175,12 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
state.designDetail.clothes.forEach((item:any) => {
|
||||
if(item.id == data){
|
||||
state.selectDetail = item
|
||||
state.frontBack.front.forEach((v:any,index:any)=>{
|
||||
v.designOpenrtionBtn = false
|
||||
if(v.id == data){
|
||||
v.designOpenrtionBtn = true
|
||||
}
|
||||
})
|
||||
// state.frontBack.front.forEach((v:any,index:any)=>{
|
||||
// v.designOpenrtionBtn = false
|
||||
// if(v.id == data){
|
||||
// v.designOpenrtionBtn = true
|
||||
// }
|
||||
// })
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user