mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 18:48:55 +00:00

* move components to web package (#37) * move components * fix * fix: cq connection * fix pagination (#41) * doc * openapi config * fix team share app lose (#42) * fix: ts * doc * doc --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com> Co-authored-by: yst <77910600+yu-and-liu@users.noreply.github.com>
22 lines
519 B
TypeScript
22 lines
519 B
TypeScript
import { serviceSideProps } from '@/web/common/utils/i18n';
|
|
import React, { useEffect } from 'react';
|
|
import Loading from '@fastgpt/web/components/common/MyLoading';
|
|
import { useRouter } from 'next/router';
|
|
|
|
const index = () => {
|
|
const router = useRouter();
|
|
useEffect(() => {
|
|
router.push('/app/list');
|
|
}, [router]);
|
|
return <Loading></Loading>;
|
|
};
|
|
|
|
export async function getServerSideProps(content: any) {
|
|
return {
|
|
props: {
|
|
...(await serviceSideProps(content))
|
|
}
|
|
};
|
|
}
|
|
export default index;
|