From d661d53466b79283845e3e86d3de77cb16773d3c Mon Sep 17 00:00:00 2001 From: lan Date: Thu, 18 Jan 2024 20:24:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9F=BA=E7=A1=80=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bc53ca4..2c2ddee 100644 --- a/main.py +++ b/main.py @@ -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))