修复调试脚本选择脚本

This commit is contained in:
whyour
2022-10-13 23:39:28 +08:00
parent 75fca715e3
commit d4b6cc5e4d
4 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -82,7 +82,11 @@ const Script = () => {
const getDetail = (node: any) => {
request
.get(`${config.apiPrefix}scripts/${node.title}?path=${node.parent || ''}`)
.get(
`${config.apiPrefix}scripts/${encodeURIComponent(node.title)}?path=${
node.parent || ''
}`,
)
.then(({ code, data }) => {
if (code === 200) {
setValue(data);