|
|
@@ -16,6 +16,14 @@ Vue.prototype.$mount = function (
|
|
|
hydrating?: boolean
|
|
|
): Component {
|
|
|
el = el && query(el)
|
|
|
+
|
|
|
+ if (el === document.body || el === document.documentElement) {
|
|
|
+ process.env.NODE_ENV !== 'production' && warn(
|
|
|
+ `Do not mount Vue to <html> or <body> - mount to normal elements instead.`
|
|
|
+ )
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
const options = this.$options
|
|
|
// resolve template/el and convert to render function
|
|
|
if (!options.render) {
|