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

fix: also set ssrAppId for first Vue app when ssrAttribute exists

This commit is contained in:
pimlie
2020-05-16 23:25:35 +02:00
parent 2792f0f952
commit 4cb57240da
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' },