From 342559df36cf5ae1cd08f0b322ca8309a698b597 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 20 Mar 2020 17:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96copyright=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/frameComponents/copyright/copyright.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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