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
53a08227
authored
Jul 29, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: admin
parent
1704cf31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
admin/service/schema.js
+1
-1
admin/src/Dashboard.tsx
+1
-1
No files found.
admin/service/schema.js
View file @
53a08227
...
@@ -114,7 +114,7 @@ const SystemSchema = new mongoose.Schema({
...
@@ -114,7 +114,7 @@ const SystemSchema = new mongoose.Schema({
}
}
});
});
export
const
App
=
mongoose
.
models
[
'
model'
]
||
mongoose
.
model
(
'model
'
,
appSchema
);
export
const
App
=
mongoose
.
models
[
'
app'
]
||
mongoose
.
model
(
'app
'
,
appSchema
);
export
const
Kb
=
mongoose
.
models
[
'kb'
]
||
mongoose
.
model
(
'kb'
,
kbSchema
);
export
const
Kb
=
mongoose
.
models
[
'kb'
]
||
mongoose
.
model
(
'kb'
,
kbSchema
);
export
const
User
=
mongoose
.
models
[
'user'
]
||
mongoose
.
model
(
'user'
,
UserSchema
);
export
const
User
=
mongoose
.
models
[
'user'
]
||
mongoose
.
model
(
'user'
,
UserSchema
);
export
const
Pay
=
mongoose
.
models
[
'pay'
]
||
mongoose
.
model
(
'pay'
,
paySchema
);
export
const
Pay
=
mongoose
.
models
[
'pay'
]
||
mongoose
.
model
(
'pay'
,
paySchema
);
...
...
admin/src/Dashboard.tsx
View file @
53a08227
...
@@ -55,7 +55,7 @@ export const Dashboard: React.FC = React.memo(() => {
...
@@ -55,7 +55,7 @@ export const Dashboard: React.FC = React.memo(() => {
const
kbResponse
=
await
fetch
(
`
${
baseUrl
}
/kbs?_end=1`
,
{
const
kbResponse
=
await
fetch
(
`
${
baseUrl
}
/kbs?_end=1`
,
{
headers
headers
});
});
const
modelResponse
=
await
fetch
(
`
${
baseUrl
}
/
model
s?_end=1`
,
{
const
modelResponse
=
await
fetch
(
`
${
baseUrl
}
/
app
s?_end=1`
,
{
headers
headers
});
});
...
...
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