新增功能:启动实例后自动打开网页面板
This commit is contained in:
parent
6e235a28c1
commit
e4b93b94b1
1 changed files with 3 additions and 1 deletions
|
@ -279,7 +279,9 @@ class Api:
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
try:
|
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:
|
except Exception as e:
|
||||||
custom_event(LogType.error, f"{cli_command[command]} 失败 {repr(e)}")
|
custom_event(LogType.error, f"{cli_command[command]} 失败 {repr(e)}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue