修复调试脚本结束条件

This commit is contained in:
whyour
2022-06-06 21:25:09 +08:00
parent 3b5bcf8f16
commit ac32117e78
4 changed files with 2 additions and 9 deletions
-6
View File
@@ -19,12 +19,6 @@ export default class ScriptService {
private taskCallbacks(filePath: string): TaskCallbacks {
return {
onEnd: async (cp, endTime, diff) => {
this.sockService.sendMessage({
type: 'manuallyRunScript',
message: `\n## 执行结束... ${endTime.format(
'YYYY-MM-DD HH:mm:ss',
)} 耗时 ${diff}`,
});
try {
fs.unlinkSync(filePath);
} catch (error) {}