import { useEffect, useState } from 'react'; import { SiteRuntime } from './SiteRuntime'; import { GetStaticProps } from 'next';

interface InfoTotalProps { totalPosts: number; numSorts: number; }

export default function InfoTotal({ totalPosts, numSorts }: InfoTotalProps) { return (

导航信息

  • 网站目录: {numSorts}
  • 收录网站: {totalPosts}
); }

export const getStaticProps: GetStaticProps = async () => { const res = await fetch('/api/total'); const { totalPosts, numSorts } = await res.json(); return { props: { totalPosts, numSorts, }, }; };

网站导航信息 - 收录网站及目录数量

原文地址: https://www.cveoy.top/t/topic/m9cl 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录