修复调试运行错误

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;
path: string;
};
const filePath = join(path, filename);
const filePath = join(config.scriptPath, path, filename);
const scriptService = Container.get(ScriptService);
const result = await scriptService.runScript(filePath);
res.send(result);