Skip to content

Commit 7998607

Browse files
committed
fix: 基础目录设置
1 parent c6d538b commit 7998607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def startup_event():
7979
@app.get('/')
8080
async def index():
8181
return HTMLResponse(
82-
content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
82+
content=open(BASE_DIR / './fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
8383
.replace('{{title}}', str(settings.name))
8484
.replace('{{description}}', str(settings.description))
8585
.replace('{{keywords}}', str(settings.keywords))

0 commit comments

Comments
 (0)