From 3db6f3a5c1f379ee0ba075fcd8d6dd0d5d64b9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=BE=9E?= Date: Thu, 11 Sep 2025 13:38:10 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AppMain.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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}',