Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决api重写后覆盖无效 #11275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading