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
9199e3e5
authored
May 02, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: userquery cache
parent
89234c19
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/pages/model/share/components/list.tsx
+4
-3
src/pages/model/share/index.tsx
+1
-1
src/pages/openapi/index.tsx
+1
-2
src/pages/promotion/index.tsx
+1
-1
No files found.
src/pages/model/share/components/list.tsx
View file @
9199e3e5
...
@@ -17,7 +17,8 @@ const ShareModelList = ({
...
@@ -17,7 +17,8 @@ const ShareModelList = ({
return
(
return
(
<>
<>
{
models
.
map
((
model
)
=>
(
{
models
.
map
((
model
)
=>
(
<
Box
<
Flex
flexDirection=
{
'column'
}
key=
{
model
.
_id
}
key=
{
model
.
_id
}
p=
{
4
}
p=
{
4
}
border=
{
'1px solid'
}
border=
{
'1px solid'
}
...
@@ -36,7 +37,7 @@ const ShareModelList = ({
...
@@ -36,7 +37,7 @@ const ShareModelList = ({
{
model
.
name
}
{
model
.
name
}
</
Box
>
</
Box
>
</
Flex
>
</
Flex
>
<
Box
className=
{
styles
.
intro
}
my=
{
4
}
fontSize=
{
'sm'
}
color=
{
'blackAlpha.600'
}
>
<
Box
flex=
{
1
}
className=
{
styles
.
intro
}
my=
{
4
}
fontSize=
{
'sm'
}
color=
{
'blackAlpha.600'
}
>
{
model
.
share
.
intro
||
'这个模型没有介绍~'
}
{
model
.
share
.
intro
||
'这个模型没有介绍~'
}
</
Box
>
</
Box
>
<
Flex
justifyContent=
{
'space-between'
}
>
<
Flex
justifyContent=
{
'space-between'
}
>
...
@@ -74,7 +75,7 @@ const ShareModelList = ({
...
@@ -74,7 +75,7 @@ const ShareModelList = ({
)
}
)
}
</
Box
>
</
Box
>
</
Flex
>
</
Flex
>
</
Bo
x
>
</
Fle
x
>
))
}
))
}
</>
</>
);
);
...
...
src/pages/model/share/index.tsx
View file @
9199e3e5
...
@@ -23,7 +23,7 @@ const modelList = () => {
...
@@ -23,7 +23,7 @@ const modelList = () => {
});
});
const
{
data
:
collectionModels
=
[],
refetch
:
refetchCollection
}
=
useQuery
(
const
{
data
:
collectionModels
=
[],
refetch
:
refetchCollection
}
=
useQuery
(
[
getCollectionModels
],
[
'getCollectionModels'
],
getCollectionModels
getCollectionModels
);
);
...
...
src/pages/openapi/index.tsx
View file @
9199e3e5
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
Link
from
'next/link'
;
import
{
import
{
Card
,
Card
,
Box
,
Box
,
...
@@ -32,7 +31,7 @@ const OpenApi = () => {
...
@@ -32,7 +31,7 @@ const OpenApi = () => {
data
:
apiKeys
=
[],
data
:
apiKeys
=
[],
isLoading
:
isGetting
,
isLoading
:
isGetting
,
refetch
refetch
}
=
useQuery
([
getOpenApiKeys
],
getOpenApiKeys
);
}
=
useQuery
([
'getOpenApiKeys'
],
getOpenApiKeys
);
const
[
apiKey
,
setApiKey
]
=
useState
(
''
);
const
[
apiKey
,
setApiKey
]
=
useState
(
''
);
const
{
copyData
}
=
useCopyData
();
const
{
copyData
}
=
useCopyData
();
...
...
src/pages/promotion/index.tsx
View file @
9199e3e5
...
@@ -47,7 +47,7 @@ const OpenApi = () => {
...
@@ -47,7 +47,7 @@ const OpenApi = () => {
useQuery
([
'init'
],
initUserInfo
);
useQuery
([
'init'
],
initUserInfo
);
const
{
data
:
{
invitedAmount
=
0
,
historyAmount
=
0
,
residueAmount
=
0
}
=
{}
}
=
useQuery
(
const
{
data
:
{
invitedAmount
=
0
,
historyAmount
=
0
,
residueAmount
=
0
}
=
{}
}
=
useQuery
(
[
'get
InvitedCountAmount
'
],
[
'get
PromotionInitData
'
],
getPromotionInitData
getPromotionInitData
);
);
...
...
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