Browse Source

Tooltip: fix bug in ssr, fixed #3152 (#3153)

cinwell.li 8 years ago
parent
commit
096aaee30c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/tooltip/src/main.js

+ 2 - 0
packages/tooltip/src/main.js

@@ -52,6 +52,8 @@ export default {
   },
   },
 
 
   render(h) {
   render(h) {
+    if (this.$isServer) return;
+
     this.popperVM.node = (
     this.popperVM.node = (
       <transition
       <transition
         name={ this.transition }
         name={ this.transition }