mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-29 16:06:07 +08:00
修复调试运行错误
This commit is contained in:
parent
cd9ba084ae
commit
1e9e9ee14b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user