调整detail前后对比大小
This commit is contained in:
@@ -600,6 +600,7 @@ export default defineComponent({
|
||||
await KeyValueDB.set('canvasList', JSON.stringify(list));
|
||||
}
|
||||
const detailEdit = async (str:any)=>{
|
||||
detailData.loadingShow = true
|
||||
if(str){
|
||||
if(detailData.isEditPattern.value && detailData.isEditPattern.value == str){
|
||||
// await detailDom.canvasBox.saveCanvas()
|
||||
@@ -621,6 +622,7 @@ export default defineComponent({
|
||||
}else{
|
||||
detailData.isEditPattern.value = ''
|
||||
}
|
||||
detailData.loadingShow = false
|
||||
}
|
||||
const getColorName = (color:any)=>{
|
||||
let rgb:any = [color.r, color.g, color.b];
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<div class="detail_modal_item_front">
|
||||
<img
|
||||
style="object-fit: cover;"
|
||||
:style="observerWH.width == '0px'?{width:observerWH.width+'px',height:observerWH.height+'px'}:{width:'auto',height:'auto','object-fit': 'contain'}"
|
||||
:style="observerWH.width > 0?{width:observerWH.width+'px',height:observerWH.height+'px'}:{width:'100%',height:'auto','object-fit': 'contain'}"
|
||||
:src="designDetail.designItemUrl" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -615,10 +615,10 @@ export default defineComponent({
|
||||
homeMainData.openTypeChild = ''
|
||||
homeMainData.openType = ''
|
||||
}
|
||||
if ((query?.id || query?.history) && !(await getIdExistToHistory())) {
|
||||
router.push('/home')
|
||||
return
|
||||
}
|
||||
// if ((query?.id || query?.history) && !(await getIdExistToHistory())) {
|
||||
// router.push('/home')
|
||||
// return
|
||||
// }
|
||||
} else {
|
||||
homeMainData.openType = ''
|
||||
homeMainData.openTypeChild = ''
|
||||
|
||||
Reference in New Issue
Block a user