文件操作 - client-fallback.client.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nuxt/dist/app/components/client-fallback.client.js
编辑文件内容
import { createElementBlock, defineComponent, onMounted, ref, useId } from "vue"; import { useState } from "../composables/state.js"; export default defineComponent({ name: "NuxtClientFallback", inheritAttrs: false, props: { fallbackTag: { type: String, default: () => "div" }, fallback: { type: String, default: () => "" }, placeholder: { type: String }, placeholderTag: { type: String }, keepFallback: { type: Boolean, default: () => false } }, emits: ["ssr-error"], setup(props, ctx) { const mounted = ref(false); const ssrFailed = useState(useId()); if (ssrFailed.value) { onMounted(() => { mounted.value = true; }); } return () => { if (ssrFailed.value) { if (!mounted.value || props.keepFallback) { const slot = ctx.slots.placeholder || ctx.slots.fallback; if (slot) { return slot(); } const fallbackStr = props.placeholder || props.fallback; const fallbackTag = props.placeholderTag || props.fallbackTag; return createElementBlock(fallbackTag, null, fallbackStr); } } return ctx.slots.default?.(); }; } });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件