修复调试运行错误

This commit is contained in:
tomatoknight 2021-11-25 10:27:57 +08:00
parent cd9ba084ae
commit 1e9e9ee14b

View File

@ -256,7 +256,7 @@ export default (app: Router) => {
filename: string; filename: string;
path: string; path: string;
}; };
const filePath = join(path, filename); const filePath = join(config.scriptPath, path, filename);
const scriptService = Container.get(ScriptService); const scriptService = Container.get(ScriptService);
const result = await scriptService.runScript(filePath); const result = await scriptService.runScript(filePath);
res.send(result); res.send(result);