Commit c7303944 authored by 张牧越's avatar 张牧越

bugfix

parent 1a10b267
NODE_ENV = "development" NODE_ENV = "development"
Mock: true Mock: true
VUE_APP_API_URL = " http://cmhv8b.natappfree.cc" VUE_APP_API_URL = "http://192.168.0.153:8002"
...@@ -160,14 +160,7 @@ export default { ...@@ -160,14 +160,7 @@ export default {
}, },
bodyScale() { bodyScale() {
var deviceHeight = window.screen.height; var deviceHeight = window.screen.height;
var pixelHeights = document.body.clientHeight; var scale = deviceHeight / 1220;
var minus = pixelHeights - deviceHeight;
console.log(minus);
var scale = deviceHeight / 1220; // height:550=2100 height:720=1680 height:940=1220 height:2160=1080
// var canvasScale = deviceWidth / 1920;
// 1.777778 16:9 1080
//1.6 16:10 1100
// 1.547 1728:890 1350
document.body.style.zoom = scale; document.body.style.zoom = scale;
document.styleSheets[document.styleSheets.length - 1].insertRule( document.styleSheets[document.styleSheets.length - 1].insertRule(
"canvas:not(.amap-layer):not(.amap-labels) {zoom: " + "canvas:not(.amap-layer):not(.amap-labels) {zoom: " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment