mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 05:37:56 +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() {
|
export function useNuxtApp() {
|
||||||
return {
|
return {
|
||||||
isHydrating: true,
|
isHydrating: true,
|
||||||
|
isVue: true,
|
||||||
payload: { serverRendered: false }
|
payload: { serverRendered: false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user