fix(接口测试): 接口测试 schema 问题修复

This commit is contained in:
baiqi 2024-07-22 10:16:26 +08:00 committed by Craftsman
parent e6feff1495
commit dbba203102
3 changed files with 6 additions and 3 deletions

View File

@ -185,7 +185,7 @@ body {
color: rgb(var(--primary-7));
}
&--required {
color: rgb(var(--danger-5));
color: rgb(var(--danger-5)) !important;
}
&--disabled {
@apply cursor-not-allowed;

View File

@ -594,7 +594,7 @@
.ms-form-table--disabled {
:deep(.arco-table-td-content) {
span,
div {
div:not(.ms-form-table-required-button--required) {
color: var(--color-text-4) !important;
}
}

View File

@ -273,10 +273,13 @@
);
watchEffect(() => {
if (props.hideJsonSchema || props.isCase) {
if (props.hideJsonSchema) {
innerParams.value.jsonBody.enableJsonSchema = false;
return;
}
if (props.isCase) {
innerParams.value.jsonBody.enableJsonSchema = false;
}
if (
innerParams.value.jsonBody.jsonSchema &&
(!innerParams.value.jsonBody.jsonSchemaTableData || innerParams.value.jsonBody.jsonSchemaTableData.length === 0)