mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-29 07:56:06 +08:00
修复调试选文件接口报错
This commit is contained in:
parent
1e9e9ee14b
commit
5e9874a9c6
|
@ -86,7 +86,7 @@ export default (app: Router) => {
|
||||||
try {
|
try {
|
||||||
const filePath = join(
|
const filePath = join(
|
||||||
config.scriptPath,
|
config.scriptPath,
|
||||||
req.query.path as string,
|
req.query.path as string | undefined || '',
|
||||||
req.params.file,
|
req.params.file,
|
||||||
);
|
);
|
||||||
const content = getFileContentByName(filePath);
|
const content = getFileContentByName(filePath);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user