elearning/Frontend-Learner/node_modules/@unhead/vue/dist/shared/vue.BVUAdATk.mjs
2026-01-13 10:48:02 +07:00

18 lines
497 B
JavaScript

import { getCurrentInstance } from 'vue';
import { u as useHead } from './vue.Bm-NbY4b.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 };