mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
fix: pc check (#3447)
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
* fix: pc check * fix: pc check
This commit is contained in:
parent
e5b8dea9ae
commit
ae149069bf
|
|
@ -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)');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue