mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(vue): prevent calling useHead in colors
This commit is contained in:
@@ -55,5 +55,7 @@ export default defineNuxtPlugin(() => {
|
||||
}]
|
||||
}
|
||||
|
||||
useHead(headData)
|
||||
if (!nuxtApp.isVue) {
|
||||
useHead(headData)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -61,6 +61,7 @@ export const useState = <T>(key: string, init: () => T): Ref<T> => {
|
||||
export function useNuxtApp() {
|
||||
return {
|
||||
isHydrating: true,
|
||||
isVue: true,
|
||||
payload: { serverRendered: false }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user