Ver Fonte

use isServer flag instead of runtime detection

Evan You há 10 anos atrás
pai
commit
1d88d9b8a0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/entries/web-runtime.js

+ 1 - 1
src/entries/web-runtime.js

@@ -26,7 +26,7 @@ Vue.prototype.$mount = function (
   el?: string | Element,
   hydrating?: boolean
 ): Component {
-  el = el && inBrowser ? query(el) : undefined
+  el = el && !config._isServer ? query(el) : undefined
   return this._mount(el, hydrating)
 }