This commit is contained in:
archer
2023-07-25 21:53:26 +08:00
parent c5f50b65c9
commit b367082d38
25 changed files with 230 additions and 276 deletions

View File

@@ -17,6 +17,7 @@ import SideTabs from '@/components/SideTabs';
import PageContainer from '@/components/PageContainer';
import Avatar from '@/components/Avatar';
import Info from './components/Info';
import { serviceSideProps } from '@/utils/i18n';
const ImportData = dynamic(() => import('./components/Import'), {
ssr: false
@@ -159,7 +160,7 @@ export async function getServerSideProps(context: any) {
const kbId = context?.query?.kbId;
return {
props: { currentTab, kbId }
props: { currentTab, kbId, ...(await serviceSideProps(content)) }
};
}

View File

@@ -12,6 +12,7 @@ import { useRequest } from '@/hooks/useRequest';
import Avatar from '@/components/Avatar';
import MyIcon from '@/components/Icon';
import Tag from '@/components/Tag';
import { serviceSideProps } from '@/utils/i18n';
const Kb = () => {
const theme = useTheme();
@@ -156,4 +157,12 @@ const Kb = () => {
);
};
export async function getServerSideProps(content: any) {
return {
props: {
...(await serviceSideProps(content))
}
};
}
export default Kb;