解决api重写后覆盖无效 (#11275)
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
gh-pages / build (20.x) (push) Waiting to run

This commit is contained in:
z418577198 2024-11-28 20:27:46 +08:00 committed by GitHub
parent 767017e763
commit 59de94217c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,53 +24,55 @@ registerActionPanel('ajax', {
</div>
);
},
schema: {
type: 'wrapper',
className: 'p-none',
body: [
getSchemaTpl('apiControl', {
name: 'api',
label: '配置请求',
mode: 'horizontal',
size: 'lg',
inputClassName: 'm-b-none',
renderLabel: true,
required: true
}),
{
name: 'options',
type: 'combo',
label: tipedLabel(
'静默请求',
'开启后,服务请求将以静默模式发送,即不会弹出成功或报错提示。'
),
mode: 'horizontal',
items: [
{
type: 'switch',
name: 'silent',
label: false,
onText: '开启',
offText: '关闭',
mode: 'horizontal',
pipeIn: defaultValue(false)
}
]
},
{
name: 'outputVar',
type: 'input-text',
label: '请求结果',
placeholder: '请输入存储请求结果的变量名称',
description:
'如需执行多次发送请求,可以修改此变量名用于区分不同请求返回的结果',
mode: 'horizontal',
size: 'lg',
value: 'responseResult',
required: true
}
]
},
schema: () => [
{
type: 'wrapper',
className: 'p-none',
body: [
getSchemaTpl('apiControl', {
name: 'api',
label: '配置请求',
mode: 'horizontal',
size: 'lg',
inputClassName: 'm-b-none',
renderLabel: true,
required: true
}),
{
name: 'options',
type: 'combo',
label: tipedLabel(
'静默请求',
'开启后,服务请求将以静默模式发送,即不会弹出成功或报错提示。'
),
mode: 'horizontal',
items: [
{
type: 'switch',
name: 'silent',
label: false,
onText: '开启',
offText: '关闭',
mode: 'horizontal',
pipeIn: defaultValue(false)
}
]
},
{
name: 'outputVar',
type: 'input-text',
label: '请求结果',
placeholder: '请输入存储请求结果的变量名称',
description:
'如需执行多次发送请求,可以修改此变量名用于区分不同请求返回的结果',
mode: 'horizontal',
size: 'lg',
value: 'responseResult',
required: true
}
]
}
],
outputVarDataSchema: [
{
type: 'object',