2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-17 08:10:33 +03:00

fix: also set ssrAppId for first Vue app when ssrAttribute exists (#563)

This reverts commit 3057828715.
This commit is contained in:
Pim
2020-05-26 22:52:24 +02:00
committed by GitHub
parent 3057828715
commit 4664df2b1f
2 changed files with 54 additions and 36 deletions
+6 -2
View File
@@ -66,8 +66,7 @@ export default function createApp () {
]
})
const app = new Vue({
router,
const App = ({
metaInfo () {
return {
title: 'Boring Title',
@@ -157,6 +156,11 @@ export default function createApp () {
</div>`
})
const app = new Vue({
router,
render: h => h(App)
})
const { set } = app.$meta().addApp('custom')
set({
bodyAttrs: { class: 'custom-app' },