From 1e9e9ee14bc0e9ec786555491f87b7fec411e800 Mon Sep 17 00:00:00 2001 From: tomatoknight Date: Thu, 25 Nov 2021 10:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E8=AF=95=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/api/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/api/script.ts b/back/api/script.ts index 0fdc5654..47376d1d 100644 --- a/back/api/script.ts +++ b/back/api/script.ts @@ -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);