文件操作 - once.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nuxt/dist/app/composables/once.d.ts
编辑文件内容
type CallOnceOptions = { mode?: 'navigation' | 'render'; }; /** * An SSR-friendly utility to call a method once * @param key a unique key ensuring the function can be properly de-duplicated across requests * @param fn a function to call * @param options Setup the mode, e.g. to re-execute on navigation * @see https://nuxt.com/docs/api/utils/call-once * @since 3.9.0 */ export declare function callOnce(key?: string, fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>; export declare function callOnce(fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>; export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件