Commit f07cbbbf authored by 于飞's avatar 于飞

登录的背景图片显示问题

parent e82f86a4
......@@ -119,6 +119,11 @@ def mount_static_files(app: FastAPI):
os.makedirs(STATIC_MESSAGE_IMG_PATH, exist_ok=True)
app.mount(
"/images",
StaticFiles(directory=static_file_path + "/images", html=True),
name="static2",
)
app.mount(
"/message/img",
StaticFiles(directory=STATIC_MESSAGE_IMG_PATH, html=True),
name="static2",
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment