diff --git a/src/views/BI/index.vue b/src/views/BI/index.vue index aee6beb..84db1ef 100644 --- a/src/views/BI/index.vue +++ b/src/views/BI/index.vue @@ -62,9 +62,9 @@ const corp = { CORP_NAME: "河北秦安", lng: 119.44758654, lat: 39.91845908 }; onMounted(() => { autofit.init({ - designHeight: 1080, - designWidth: 1920, - renderDom: "#bi_container", + dh: document.querySelector(".map_bg").offsetHeight, + dw: 1920, + el: "#bi_container", resize: true, }); transitionKey.value = Math.random();