mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-17 07:00:35 +03:00
Revert "fix: set ssr appId in mounted hook"
This reverts commit 2dd1697ead.
This commit is contained in:
+4
-2
@@ -75,14 +75,16 @@ export default function createMixin(Vue, options) {
|
||||
this.$root._vueMeta.initialized = this.$isServer
|
||||
|
||||
if (!this.$root._vueMeta.initialized) {
|
||||
// we use the mounted hook here as on page load
|
||||
ensuredPush(this.$options, 'mounted', () => {
|
||||
ensuredPush(this.$options, 'beforeMount', () => {
|
||||
// if this Vue-app was server rendered, set the appId to 'ssr'
|
||||
// only one SSR app per page is supported
|
||||
if (this.$root.$el && this.$root.$el.hasAttribute('data-server-rendered')) {
|
||||
this.$root._vueMeta.appId = 'ssr'
|
||||
}
|
||||
})
|
||||
|
||||
// we use the mounted hook here as on page load
|
||||
ensuredPush(this.$options, 'mounted', () => {
|
||||
if (!this.$root._vueMeta.initialized) {
|
||||
// used in triggerUpdate to check if a change was triggered
|
||||
// during initialization
|
||||
|
||||
Reference in New Issue
Block a user