feat: add TITLE in worker for custom website title (#276)

This commit is contained in:
Dream Hunter
2024-05-26 16:21:27 +08:00
committed by GitHub
parent 268f3d6446
commit 1f8edbc295
14 changed files with 93 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import App from './App.vue'
import { createI18n } from 'vue-i18n'
import router from './router'
import { registerSW } from 'virtual:pwa-register'
import { createHead } from '@unhead/vue'
registerSW({ immediate: true })
const i18n = createI18n({
@@ -16,7 +17,9 @@ const i18n = createI18n({
messages: {}
}
})
const head = createHead()
const app = createApp(App)
app.use(i18n)
app.use(router)
app.use(head)
app.mount('#app')