mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
修复调试脚本选择脚本
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user