fix: 修复 tagsView 切换后监听失效。

This commit is contained in:
Zhoujianlu 2020-06-17 10:12:49 +08:00 committed by GitHub
parent 9603d50fdc
commit 28e33fce55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export default {
await doResize(el, binding, vnode)
}
// parameter 1 is must be "Element" type
addResizeListener(el, el.resizeListener)
addResizeListener(window.document.body, el.resizeListener)
},
async inserted(el, binding, vnode) {