文件操作 - compatibility.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nuxtjs/i18n/dist/runtime/compatibility.js
编辑文件内容
import { isRef } from "vue"; function isI18nInstance(i18n) { return i18n != null && "global" in i18n && "mode" in i18n; } function isComposer(target) { return target != null && !("__composer" in target) && "locale" in target && isRef(target.locale); } export function isVueI18n(target) { return target != null && "__composer" in target; } export function getI18nTarget(i18n) { return isI18nInstance(i18n) ? i18n.global : i18n; } export function getComposer(i18n) { const target = getI18nTarget(i18n); if (isComposer(target)) return target; if (isVueI18n(target)) return target.__composer; return target; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件