修复调试选文件接口报错

This commit is contained in:
tomatoknight 2021-11-25 11:21:01 +08:00
parent 1e9e9ee14b
commit 5e9874a9c6

View File

@ -86,7 +86,7 @@ export default (app: Router) => {
try {
const filePath = join(
config.scriptPath,
req.query.path as string,
req.query.path as string | undefined || '',
req.params.file,
);
const content = getFileContentByName(filePath);