调整detail前后对比大小

This commit is contained in:
X1627315083
2026-01-23 16:06:47 +08:00
parent bc8ce0bd47
commit df5cb918a2
3 changed files with 7 additions and 5 deletions

View File

@@ -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];

View File

@@ -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>

View File

@@ -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 = ''