Jeecg-Boot 2.1.4 版本发布 | 重构较大,较多新功能

This commit is contained in:
zhangdaiscott
2020-02-24 02:44:53 +08:00
parent f342b18ddf
commit 9d8c7da31f
269 changed files with 15734 additions and 24855 deletions

View File

@ -0,0 +1,28 @@
window.onresize = function() {
setAppScale();
};
function setAppScale() {
var ratioY = $(window).height()/1536;
var ratioX = $(window).width()/4352;
var screenWidth = window.screen.width;
var screenHeigth = window.screen.height;
if (screenWidth >= 960) {
ratioX = 0.62
}
if(screenHeigth <= 1080){
ratioY = 0.62
}
$("body").css({
transform: "scale("+ ratioX+","+ ratioY+")",
transformOrigin: "left top",
overflow:"visible"
});
}
$().ready(function(){
//初始化时调整大小
setAppScale();
});