mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
fix(vue): head injection (#2929)
This commit is contained in:
committed by
GitHub
parent
2c99bb80c7
commit
7302a846a9
@@ -1,8 +1,8 @@
|
||||
import { createHead } from '@unhead/vue'
|
||||
import { createHead, setHeadInjectionHandler } from '@unhead/vue'
|
||||
import type { Plugin } from 'vue'
|
||||
|
||||
export default {
|
||||
install(app) {
|
||||
app.use(createHead())
|
||||
install() {
|
||||
setHeadInjectionHandler(() => createHead())
|
||||
}
|
||||
} satisfies Plugin
|
||||
|
||||
Reference in New Issue
Block a user