mounted(){
	//自适应窗口
	if(window.screen.width > 1200){
		function bodyScale(){
			let deviceWidth = document.documentElement.clientWidth;
			let scale = deviceWidth / 1920;
			document.body.style.zoom = scale;
		}
		window.onload = window.onresize = function(){
			bodyScale();
		}
	}
}
Logo

前往低代码交流专区

更多推荐