From 9603d50fdcb31ced3731aed9f36a911b992131b1 Mon Sep 17 00:00:00 2001 From: Zhoujianlu <736021777@qq.com> Date: Thu, 23 Apr 2020 15:24:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20tagsView=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=90=8E=20resizeListener=20=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E5=A4=B1=E6=95=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/directive/el-table/adaptive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/directive/el-table/adaptive.js b/src/directive/el-table/adaptive.js index ad84b51c..cf5048d1 100644 --- a/src/directive/el-table/adaptive.js +++ b/src/directive/el-table/adaptive.js @@ -30,12 +30,12 @@ export default { await doResize(el, binding, vnode) } // parameter 1 is must be "Element" type - await addResizeListener(window.document.body, el.resizeListener) + addResizeListener(window.document.body, el.resizeListener) }, async inserted(el, binding, vnode) { await doResize(el, binding, vnode) }, unbind(el) { - removeResizeListener(window.document.body, el.resizeListener) + removeResizeListener(el, el.resizeListener) } }