mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 13:09:28 +08:00
fix(接口测试): 修复未输入url,仍然可以执行的缺陷
--bug=1037938 --user=王孝刚 【接口测试】接口调试-不输入url点执行,提示参数校验失败,建议明确提示信息 https://www.tapd.cn/55049933/s/1502172
This commit is contained in:
parent
4c885325a7
commit
291e2f3104
@ -611,7 +611,7 @@
|
|||||||
select
|
select
|
||||||
a.id as id,
|
a.id as id,
|
||||||
max(a.num) as num,
|
max(a.num) as num,
|
||||||
max(a.name) as resourceName,
|
max(a.name) as resource_name,
|
||||||
'API' as resourceType,
|
'API' as resourceType,
|
||||||
ass.ref_type as refType,
|
ass.ref_type as refType,
|
||||||
max(p.id) as projectId ,
|
max(p.id) as projectId ,
|
||||||
|
@ -92,7 +92,7 @@ public class UserLocalConfigService {
|
|||||||
public void update(UserLocalConfigUpdateRequest request) {
|
public void update(UserLocalConfigUpdateRequest request) {
|
||||||
UserLocalConfig userLocalConfig = checkResourceById(request.getId());
|
UserLocalConfig userLocalConfig = checkResourceById(request.getId());
|
||||||
userLocalConfig.setUserUrl(request.getUserUrl());
|
userLocalConfig.setUserUrl(request.getUserUrl());
|
||||||
userLocalConfigMapper.updateByPrimaryKeySelective(userLocalConfig);
|
userLocalConfigMapper.updateByPrimaryKey(userLocalConfig);
|
||||||
LogDTO dto = LogDTOBuilder.builder()
|
LogDTO dto = LogDTOBuilder.builder()
|
||||||
.projectId(OperationLogConstants.SYSTEM)
|
.projectId(OperationLogConstants.SYSTEM)
|
||||||
.organizationId(OperationLogConstants.SYSTEM)
|
.organizationId(OperationLogConstants.SYSTEM)
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
v-else-if="!requestVModel.executeLoading"
|
v-else-if="!requestVModel.executeLoading"
|
||||||
class="mr-[12px]"
|
class="mr-[12px]"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
:disabled="requestVModel.executeLoading || (isHttpProtocol && !requestVModel.url)"
|
||||||
@click="() => execute('serverExec')"
|
@click="() => execute('serverExec')"
|
||||||
>
|
>
|
||||||
{{ t('apiTestDebug.serverExec') }}
|
{{ t('apiTestDebug.serverExec') }}
|
||||||
|
@ -94,10 +94,14 @@
|
|||||||
value: `${key}-PENDING`,
|
value: `${key}-PENDING`,
|
||||||
label: t(`report.detail.pendingCount`),
|
label: t(`report.detail.pendingCount`),
|
||||||
},
|
},
|
||||||
{
|
...(key === ScenarioStepType.API_SCENARIO
|
||||||
value: `${key}-scriptIdentifier`,
|
? []
|
||||||
label: t(`report.detail.api.scriptError`),
|
: [
|
||||||
},
|
{
|
||||||
|
value: `${key}-scriptIdentifier`,
|
||||||
|
label: t(`report.detail.api.scriptError`),
|
||||||
|
},
|
||||||
|
]),
|
||||||
];
|
];
|
||||||
const cascaderOptions = ref<CascaderOption[]>([
|
const cascaderOptions = ref<CascaderOption[]>([
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user