Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ae149069
authored
Dec 21, 2024
by
Archer
Committed by
GitHub
Dec 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: pc check (#3447)
* fix: pc check * fix: pc check
parent
e5b8dea9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
packages/web/common/system/nextjs.ts
+1
-1
packages/web/context/useSystem.tsx
+1
-1
No files found.
packages/web/common/system/nextjs.ts
View file @
ae149069
...
...
@@ -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
)),
...
...
packages/web/context/useSystem.tsx
View file @
ae149069
...
...
@@ -23,7 +23,7 @@ const SystemStoreContextProvider = ({
device
}:
{
children
:
ReactNode
;
device
?:
'pc'
|
'mobile'
;
device
?:
'pc'
|
'mobile'
|
null
;
})
=>
{
const
[
isPc
]
=
useMediaQuery
(
'(min-width: 900px)'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment