From e4b93b94b104683da4b9e8a11afa584aebbcceeb Mon Sep 17 00:00:00 2001 From: li-xiaochen <397721316@qq.com> Date: Mon, 10 Mar 2025 00:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=AE=9E=E4=BE=8B=E5=90=8E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=89=93=E5=BC=80=E7=BD=91=E9=A1=B5=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- launcher/webview/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/webview/api.py b/launcher/webview/api.py index 7b0f048..8bb62a3 100644 --- a/launcher/webview/api.py +++ b/launcher/webview/api.py @@ -279,7 +279,9 @@ class Api: ) return try: - self.run("cli", "mower-ng", {"command": command, "path": path}) + ret = self.run("cli", "mower-ng", {"command": command, "path": path}) + if command == "launch" and ret == "success": + self.run("cli", "mower-ng", {"command": "webui", "path": path}) except Exception as e: custom_event(LogType.error, f"{cli_command[command]} 失败 {repr(e)}")