diff --git a/src/components/LandMarkShow.vue b/src/components/LandMarkShow.vue index ac9a9b4..9e9fa0f 100644 --- a/src/components/LandMarkShow.vue +++ b/src/components/LandMarkShow.vue @@ -51,13 +51,13 @@ const adaptive = (imgId) => { let newImg; setTimeout(() => { newImg = document.getElementById(imgId); - }, 5); + }, 10); setTimeout(() => { let newWidth = window.getComputedStyle(newImg, null)["width"]; let newMargin = window.getComputedStyle(newImg, null).marginLeft; describesShow.value = `width:${newWidth};left:${newMargin};${judgmentDown.value}`; brieflyShow.value = `width:${newWidth};left:${newMargin};${judgmentUp.value}`; - }, 10); + }, 20); } watch(() => LandMarkShow.boxShow, (newValue, oldValue) => {