fix: 基础目录设置
This commit is contained in:
1 parent
8d385e86d5
commit
d661d53466
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user