🐛: 修复一些小bug

This commit is contained in:
Evil0ctal 2024-04-23 09:48:03 -07:00
parent 84ee1837ce
commit 4ffaa5a938
2 changed files with 6 additions and 2 deletions

View file

@ -132,8 +132,9 @@ app = FastAPI(
app.include_router(api_router, prefix="/api")
# PyWebIO APP
webapp = asgi_app(lambda: MainView().main_view())
app.mount("/", webapp)
if config['Web']['PyWebIO_Enable']:
webapp = asgi_app(lambda: MainView().main_view())
app.mount("/", webapp)
if __name__ == '__main__':
uvicorn.run(app, host=Host_IP, port=Host_Port)

View file

@ -1,5 +1,8 @@
# Web
Web:
# APP Switch
PyWebIO_Enable: true # Enable APP | 启用APP
# APP Information
Domain: https://douyin.wtf # Web domain | Web域名