fix: 基础目录设置

This commit is contained in:
lan
2024-01-18 20:24:01 +08:00
parent c6d538b2f4
commit 7998607ac4
+1 -1
View File
@@ -79,7 +79,7 @@ async def startup_event():
@app.get('/')
async def index():
return HTMLResponse(
content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
content=open(BASE_DIR / './fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
.replace('{{title}}', str(settings.name))
.replace('{{description}}', str(settings.description))
.replace('{{keywords}}', str(settings.keywords))