修改脚本详情和日志详情接口

This commit is contained in:
whyour
2024-01-29 21:47:03 +08:00
parent 49c441117a
commit 0ae1f284ec
6 changed files with 25 additions and 21 deletions
+5 -1
View File
@@ -67,7 +67,11 @@ const EditModal = ({
const getDetail = (node: any) => {
request
.get(`${config.apiPrefix}scripts/${node.title}?path=${node.parent || ''}`)
.get(
`${config.apiPrefix}scripts/detail?file=${node.title}&path=${
node.parent || ''
}`,
)
.then(({ code, data }) => {
if (code === 200) {
setValue(data);
+3 -3
View File
@@ -84,9 +84,9 @@ const Script = () => {
const getDetail = (node: any) => {
request
.get(
`${config.apiPrefix}scripts/${encodeURIComponent(node.title)}?path=${
node.parent || ''
}`,
`${config.apiPrefix}scripts/detail?file=${encodeURIComponent(
node.title,
)}&path=${node.parent || ''}`,
)
.then(({ code, data }) => {
if (code === 200) {