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)}")