site-panzai/node_modules/@unhead/vue/dist/shared/vue.BuDgoFqp.mjs

19 lines
497 B
JavaScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
import { getCurrentInstance } from 'vue';
import { u as useHead } from './vue.Cd6dkybA.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 };