From 3a1fca4953165f5b237e384c17da4cffa93576ce Mon Sep 17 00:00:00 2001 From: cookfront Date: Thu, 16 Feb 2017 16:38:47 +0800 Subject: [PATCH] popup component --- src/mixins/popup/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/mixins/popup/index.js b/src/mixins/popup/index.js index 0fb0bd390..0e8fe4e62 100644 --- a/src/mixins/popup/index.js +++ b/src/mixins/popup/index.js @@ -14,7 +14,6 @@ const getDOM = function(dom) { let scrollBarWidth; const getScrollBarWidth = () => { - if (Vue.prototype.$isServer) return; if (scrollBarWidth !== undefined) return scrollBarWidth; const outer = document.createElement('div'); @@ -76,14 +75,7 @@ export default { if (val) { if (this.opening) return; - if (!this.rendered) { - this.rendered = true; - Vue.nextTick(() => { - this.open(); - }); - } else { - this.open(); - } + this.open(); } else { this.close(); }