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