mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 07:31:19 +00:00
fix: page /404 translator not working bug (#5320)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { serviceSideProps } from '@/web/common/i18n/utils';
|
||||
import React, { useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
@@ -10,4 +11,12 @@ const NonePage = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export async function getStaticProps(content: any) {
|
||||
return {
|
||||
props: {
|
||||
...(await serviceSideProps(content))
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default NonePage;
|
||||
|
Reference in New Issue
Block a user