文件操作 - check-if-page-unused.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nuxt/dist/pages/runtime/plugins/check-if-page-unused.js
编辑文件内容
import { nextTick } from "vue"; import { defineNuxtPlugin } from "#app/nuxt"; import { onNuxtReady } from "#app/composables/ready"; import { useError } from "#app/composables/error"; export default defineNuxtPlugin({ name: "nuxt:checkIfPageUnused", setup(nuxtApp) { const error = useError(); function checkIfPageUnused() { if (!error.value && !nuxtApp._isNuxtPageUsed) { console.warn( "[nuxt] Your project has pages but the `<NuxtPage />` component has not been used. You might be using the `<RouterView />` component instead, which will not work correctly in Nuxt. You can set `pages: false` in `nuxt.config` if you do not wish to use the Nuxt `vue-router` integration." ); } } if (import.meta.server) { nuxtApp.hook("app:rendered", ({ renderResult }) => { if (renderResult?.html) { nextTick(checkIfPageUnused); } }); } else { onNuxtReady(checkIfPageUnused); } }, env: { islands: false } });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件