Browse Source

as 清理

hl 8 months ago
parent
commit
640ad6a2fc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      client.js

+ 3 - 0
client.js

@@ -8,6 +8,9 @@ const {logger} = require("./src/utils/logger");
 const {exec} = require("child_process");
 const {exec} = require("child_process");
 
 
 try {
 try {
+    // 开机前做一次,清除确保环境干净(删除可能遗留的as程序)
+    await robot.closeAppAll()
+    // 配置环境
     config.init()
     config.init()
     // 启动web
     // 启动web
     web.init()
     web.init()