创高项目初始化
This commit is contained in:
28
client/node_modules/@unhead/vue/dist/polyfill.mjs
generated
vendored
Normal file
28
client/node_modules/@unhead/vue/dist/polyfill.mjs
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { u as useHead } from './shared/vue.-sixQ7xP.mjs';
|
||||
import 'vue';
|
||||
import './shared/vue.ziyDaVMR.mjs';
|
||||
import 'unhead';
|
||||
import '@unhead/shared';
|
||||
|
||||
function polyfillAsVueUseHead(head) {
|
||||
const polyfilled = head;
|
||||
polyfilled.headTags = head.resolveTags;
|
||||
polyfilled.addEntry = head.push;
|
||||
polyfilled.addHeadObjs = head.push;
|
||||
polyfilled.addReactiveEntry = (input, options) => {
|
||||
const api = useHead(input, options);
|
||||
if (api !== void 0)
|
||||
return api.dispose;
|
||||
return () => {
|
||||
};
|
||||
};
|
||||
polyfilled.removeHeadObjs = () => {
|
||||
};
|
||||
polyfilled.updateDOM = () => {
|
||||
head.hooks.callHook("entries:updated", head);
|
||||
};
|
||||
polyfilled.unhead = head;
|
||||
return polyfilled;
|
||||
}
|
||||
|
||||
export { polyfillAsVueUseHead };
|
||||
Reference in New Issue
Block a user