mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
@@ -6,7 +6,7 @@ export const serviceSideProps = async (content: any, ns: I18nNsType = []) => {
|
||||
const extraLng = content.req?.cookies?.NEXT_LOCALE ? undefined : content.locales;
|
||||
|
||||
// Device size
|
||||
const deviceSize = content.req?.cookies?.NEXT_DEVICE_SIZE || 'pc';
|
||||
const deviceSize = content.req?.cookies?.NEXT_DEVICE_SIZE || null;
|
||||
|
||||
return {
|
||||
...(await serverSideTranslations(lang, ['common', ...ns], null, extraLng)),
|
||||
|
@@ -23,7 +23,7 @@ const SystemStoreContextProvider = ({
|
||||
device
|
||||
}: {
|
||||
children: ReactNode;
|
||||
device?: 'pc' | 'mobile';
|
||||
device?: 'pc' | 'mobile' | null;
|
||||
}) => {
|
||||
const [isPc] = useMediaQuery('(min-width: 900px)');
|
||||
|
||||
|
Reference in New Issue
Block a user