修复退出调试自动删除调试日志目录

This commit is contained in:
whyour committed 2023-08-22 22:18:18 +08:00
1 parent a8174e89be
commit 40e8041401
11 files changed
+36 -23

No files matched your search

+1 -2
View File
@@ -53,10 +53,9 @@ export default class ScriptService {
}
public async stopScript(filePath: string, pid: number) {
let str = '';
if (!pid) {
const relativePath = path.relative(config.scriptPath, filePath);
pid = await getPid(`${TASK_COMMAND} -l ${relativePath} now`);
pid = await getPid(`${TASK_COMMAND} -l ${relativePath} now`) as number;
}
try {
await killTask(pid);