diff --git a/public/frameComponents/copyright/copyright.js b/public/frameComponents/copyright/copyright.js index 6ef2b395a..254dcadbb 100644 --- a/public/frameComponents/copyright/copyright.js +++ b/public/frameComponents/copyright/copyright.js @@ -24,8 +24,18 @@ return; } this.copyrightInfo.logo = sysInfo.logo; + }, + _initView: function () { + + let footer = document.getElementsByClassName('footer')[0]; + windowH = document.documentElement.clientHeight; + bodyH = document.body.offsetHeight; + bodyH < windowH ? (footer.style.position = 'fixed', footer.style.bottom = '0') : (footer.style.position = ''); + } } }); + window.onresize = function () { vm._initView() } + })(window.vc) \ No newline at end of file