diff --git a/frontend/src/components/business/ms-menu/index.vue b/frontend/src/components/business/ms-menu/index.vue
index acdd6812cd..97ea8a80eb 100644
--- a/frontend/src/components/business/ms-menu/index.vue
+++ b/frontend/src/components/business/ms-menu/index.vue
@@ -391,7 +391,9 @@
]}
>
-
{collapsed.value ? null : userStore.name}
+
+ {collapsed.value ? null : userStore.name}
+
}
{collapsed.value ? null : }
diff --git a/frontend/src/views/api-test/components/requestComposition/body.vue b/frontend/src/views/api-test/components/requestComposition/body.vue
index f46c74ee72..09a703d5a5 100644
--- a/frontend/src/views/api-test/components/requestComposition/body.vue
+++ b/frontend/src/views/api-test/components/requestComposition/body.vue
@@ -86,7 +86,10 @@
-->
-
+
-
+
@@ -221,6 +225,8 @@
disabledParamValue?: boolean; // 参数值禁用
disabledExceptParam?: boolean; // 除了可以修改参数值其他都禁用
isDebug?: boolean; // 是否调试模式
+ hideJsonSchema?: boolean; // 隐藏json schema
+ isCase?: boolean; // 是否是 case
uploadTempFileApi?: (file: File) => Promise; // 上传临时文件接口
fileSaveAsSourceId?: string | number; // 文件转存关联的资源id
fileSaveAsApi?: (params: TransferFileParams) => Promise; // 文件转存接口
@@ -267,6 +273,10 @@
);
watchEffect(() => {
+ if (props.hideJsonSchema || props.isCase) {
+ innerParams.value.jsonBody.enableJsonSchema = false;
+ return;
+ }
if (
innerParams.value.jsonBody.jsonSchema &&
(!innerParams.value.jsonBody.jsonSchemaTableData || innerParams.value.jsonBody.jsonSchemaTableData.length === 0)
diff --git a/frontend/src/views/api-test/components/requestComposition/index.vue b/frontend/src/views/api-test/components/requestComposition/index.vue
index ed4999f366..5fbca76e4d 100644
--- a/frontend/src/views/api-test/components/requestComposition/index.vue
+++ b/frontend/src/views/api-test/components/requestComposition/index.vue
@@ -247,6 +247,8 @@
:file-save-as-api="props.fileSaveAsApi"
:file-module-options-api="props.fileModuleOptionsApi"
:is-debug="requestVModel.mode === 'debug'"
+ :hide-json-schema="props.hideJsonSchema"
+ :is-case="props.isCase"
@change="handleActiveDebugChange"
/>
; // 保存请求时的其他参数
+ hideJsonSchema?: boolean; // 是否隐藏json schema
executeApi?: (params: ExecuteRequestParams) => Promise; // 执行接口
localExecuteApi?: (url: string, params: ExecuteRequestParams) => Promise; // 本地执行接口
createApi?: (...args: any) => Promise; // 创建接口
diff --git a/frontend/src/views/api-test/debug/index.vue b/frontend/src/views/api-test/debug/index.vue
index cf59a299f4..aee90e3c1f 100644
--- a/frontend/src/views/api-test/debug/index.vue
+++ b/frontend/src/views/api-test/debug/index.vue
@@ -36,7 +36,7 @@
-