Files
antrean-anjungan/examples/nuxt3-websocket-client/node_modules/@unhead/vue/dist/shared/vue.nvpYXC6D.mjs
T
2025-09-18 19:01:22 +07:00

19 lines
497 B
JavaScript

import { getCurrentInstance } from 'vue';
import { u as useHead } from './vue.BYLJNEcq.mjs';
const VueHeadMixin = {
created() {
let source = false;
const instance = getCurrentInstance();
if (!instance)
return;
const options = instance.type;
if (!options || !("head" in options))
return;
source = typeof options.head === "function" ? () => options.head.call(instance.proxy) : options.head;
source && useHead(source);
}
};
export { VueHeadMixin as V };