mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
fix(vue): missing unhead context (#3589)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -3,6 +3,11 @@ import type { Plugin } from 'vue'
|
||||
|
||||
export default {
|
||||
install(app) {
|
||||
// check for existing head instance to avoid replacement
|
||||
// bit hacky but we can't use injectHead() here
|
||||
if (app._context.provides.usehead) {
|
||||
return
|
||||
}
|
||||
const head = createHead()
|
||||
app.use(head)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user