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
68eca25d
authored
Jun 25, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ssr close
parent
9eed3214
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
client/src/hooks/useScreen.ts
+1
-1
client/src/pages/model/components/ModelList.tsx
+2
-2
client/src/pages/model/components/detail/components/API.tsx
+1
-1
client/src/pages/number/index.tsx
+5
-5
No files found.
client/src/hooks/useScreen.ts
View file @
68eca25d
...
...
@@ -8,7 +8,7 @@ interface Props {
export
function
useScreen
(
data
?:
Props
)
{
const
{
defaultIsPc
=
false
}
=
data
||
{};
const
[
isPc
]
=
useMediaQuery
(
'(min-width: 900px)'
,
{
ssr
:
tru
e
,
ssr
:
fals
e
,
fallback
:
defaultIsPc
});
...
...
client/src/pages/model/components/ModelList.tsx
View file @
68eca25d
...
...
@@ -12,10 +12,10 @@ import { MyModelsTypeEnum } from '@/constants/user';
import
dynamic
from
'next/dynamic'
;
const
Avatar
=
dynamic
(()
=>
import
(
'@/components/Avatar'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
Tabs
=
dynamic
(()
=>
import
(
'@/components/Tabs'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
ModelList
=
({
modelId
}:
{
modelId
:
string
})
=>
{
...
...
client/src/pages/model/components/detail/components/API.tsx
View file @
68eca25d
...
...
@@ -5,7 +5,7 @@ import dynamic from 'next/dynamic';
import
MyIcon
from
'@/components/Icon'
;
const
APIKeyModal
=
dynamic
(()
=>
import
(
'@/components/APIKeyModal'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
API
=
({
modelId
}:
{
modelId
:
string
})
=>
{
...
...
client/src/pages/number/index.tsx
View file @
68eca25d
...
...
@@ -23,21 +23,21 @@ import Tabs from '@/components/Tabs';
import
BillTable
from
'./components/BillTable'
;
const
PayRecordTable
=
dynamic
(()
=>
import
(
'./components/PayRecordTable'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
PromotionTable
=
dynamic
(()
=>
import
(
'./components/PromotionTable'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
InformTable
=
dynamic
(()
=>
import
(
'./components/InformTable'
),
{
ssr
:
tru
e
ssr
:
fals
e
});
const
PayModal
=
dynamic
(()
=>
import
(
'./components/PayModal'
),
{
loading
:
()
=>
<
Loading
fixed=
{
false
}
/>,
ssr
:
tru
e
ssr
:
fals
e
});
const
WxConcat
=
dynamic
(()
=>
import
(
'@/components/WxConcat'
),
{
loading
:
()
=>
<
Loading
fixed=
{
false
}
/>,
ssr
:
tru
e
ssr
:
fals
e
});
enum
TableEnum
{
...
...
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