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:
+6
-2
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user