Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
db_gpt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linyangyang
db_gpt
Commits
f07cbbbf
Commit
f07cbbbf
authored
Aug 22, 2024
by
于飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录的背景图片显示问题
parent
e82f86a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dbgpt_server.py
dbgpt/app/dbgpt_server.py
+5
-0
No files found.
dbgpt/app/dbgpt_server.py
View file @
f07cbbbf
...
@@ -119,6 +119,11 @@ def mount_static_files(app: FastAPI):
...
@@ -119,6 +119,11 @@ def mount_static_files(app: FastAPI):
os
.
makedirs
(
STATIC_MESSAGE_IMG_PATH
,
exist_ok
=
True
)
os
.
makedirs
(
STATIC_MESSAGE_IMG_PATH
,
exist_ok
=
True
)
app
.
mount
(
app
.
mount
(
"/images"
,
"/images"
,
StaticFiles
(
directory
=
static_file_path
+
"/images"
,
html
=
True
),
name
=
"static2"
,
)
app
.
mount
(
"/message/img"
,
StaticFiles
(
directory
=
STATIC_MESSAGE_IMG_PATH
,
html
=
True
),
StaticFiles
(
directory
=
STATIC_MESSAGE_IMG_PATH
,
html
=
True
),
name
=
"static2"
,
name
=
"static2"
,
)
)
...
...
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