diff --git a/AppMain.py b/AppMain.py index 144781c..08ee758 100644 --- a/AppMain.py +++ b/AppMain.py @@ -9,6 +9,7 @@ os.chdir(os.path.dirname(os.path.abspath(__file__))) # 切换到当前目录 import core.WebApp as WebApp import core.PyWebPageAPI as PyWebPageAPI import core.WebViewWIndow as WebViewWIndow +import core.DBServices as DBServices import ProjectCfg @@ -48,7 +49,14 @@ def main(): daemon=True ) app_thread.start() - + + # 启动数据库 + dbServices_thread = threading.Thread( + target=DBServices.DBStart, + daemon=True + ) + dbServices_thread.start() + # 启动Webview try: WebViewWIndow.WebViewWIndow(#窗口配置 f'http://127.0.0.1:{StartPort}',