From 7af562d1b9699bb3c4f37f3969e484f65c1ab2ee Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 19 Oct 2020 16:19:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E6=BB=91?= =?UTF-8?q?=E6=A1=86=E6=BB=91=E5=88=B0=E9=A1=B6=E9=83=A8=E5=90=8E=E4=BC=9A?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/js/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js index daeaf51a1..0cfc42543 100644 --- a/nezha-fronted/src/components/common/js/tools.js +++ b/nezha-fronted/src/components/common/js/tools.js @@ -213,15 +213,15 @@ export const bottomBoxWindow = { //得到鼠标拖动的距离 let mouseMoveY = e.clientY-mouseInitialY; resizeModalEndHeight = subInitialHeight-mouseMoveY; - resizeModalDom.style.height = `${resizeModalEndHeight}px`; // 主、副列表高度限制 if(resizeModalEndHeight > contentRightHeight-minHeight){ - resizeModalDom.style.height = `${contentRightHeight-minHeight}px`; + resizeModalEndHeight = contentRightHeight-minHeight; } if(resizeModalEndHeight < minHeight){ - resizeModalDom.style.height = `${minHeight}px`; + resizeModalEndHeight = minHeight; } + resizeModalDom.style.height = `${resizeModalEndHeight}px`; }; document.onmouseup = () => { window.resizing = false;