文件操作 - useSiteQuestions.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/extendify/src/Launch/hooks/useSiteQuestions.js
编辑文件内容
import { getSiteQuestions } from '@launch/api/DataApi'; import { useSiteProfile } from '@launch/hooks/useSiteProfile'; import useSWRImmutable from 'swr/immutable'; export const useSiteQuestions = ({ disableFetch = false } = {}) => { const { siteProfile, loading: profileLoading } = useSiteProfile(); const { data, error } = useSWRImmutable( profileLoading || !siteProfile || disableFetch ? null : { key: 'site-questions', siteProfile, }, getSiteQuestions, ); return { questions: data, error, loading: profileLoading || (!data && !error), }; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件