文件操作 - vue.-sixQ7xP.mjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@unhead/vue/dist/shared/vue.-sixQ7xP.mjs
编辑文件内容
import { ref, watchEffect, watch, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue'; import { i as injectHead, r as resolveUnrefHeadInput } from './vue.ziyDaVMR.mjs'; function useHead(input, options = {}) { const head = options.head || injectHead(); if (head) { if (!head.ssr) return clientUseHead(head, input, options); return head.push(input, options); } } function clientUseHead(head, input, options = {}) { const deactivated = ref(false); const resolvedInput = ref({}); watchEffect(() => { resolvedInput.value = deactivated.value ? {} : resolveUnrefHeadInput(input); }); const entry = head.push(resolvedInput.value, options); watch(resolvedInput, (e) => { entry.patch(e); }); const vm = getCurrentInstance(); if (vm) { onBeforeUnmount(() => { entry.dispose(); }); onDeactivated(() => { deactivated.value = true; }); onActivated(() => { deactivated.value = false; }); } return entry; } export { useHead as u };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件