mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
修复调试选文件接口报错
This commit is contained in:
parent
1e9e9ee14b
commit
5e9874a9c6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user