diff --git a/frontend/src/models/projectManagement/environmental.ts b/frontend/src/models/projectManagement/environmental.ts
index 46ac6c5bdd..8bc395a7cf 100644
--- a/frontend/src/models/projectManagement/environmental.ts
+++ b/frontend/src/models/projectManagement/environmental.ts
@@ -1,6 +1,7 @@
import { ExecuteConditionProcessor } from '../apiTest/common';
export interface EnvListItem {
+ mock?: boolean;
name: string;
id: string;
}
diff --git a/frontend/src/views/project-management/environmental/components/EnvParamBox.vue b/frontend/src/views/project-management/environmental/components/EnvParamBox.vue
index 98f937e357..965e01f309 100644
--- a/frontend/src/views/project-management/environmental/components/EnvParamBox.vue
+++ b/frontend/src/views/project-management/environmental/components/EnvParamBox.vue
@@ -42,7 +42,7 @@
diff --git a/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue b/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue
index d1db630c6d..fe2c80fcd2 100644
--- a/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue
+++ b/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue
@@ -6,7 +6,9 @@
}}
-
{{ t('project.environmental.addHttp') }}
+
{{
+ t('project.environmental.addHttp')
+ }}
@@ -39,7 +41,7 @@
-
+
{{ t('common.copy') }}
{{ t('common.edit') }}
diff --git a/frontend/src/views/project-management/environmental/index.vue b/frontend/src/views/project-management/environmental/index.vue
index 2608f9c4c2..7662a5ef14 100644
--- a/frontend/src/views/project-management/environmental/index.vue
+++ b/frontend/src/views/project-management/environmental/index.vue
@@ -92,7 +92,7 @@
/>
handleMoreAction(value, element.id, EnvAuthTypeEnum.ENVIRONMENT_PARAM)
"
@@ -273,20 +273,23 @@
});
// 默认环境MoreAction
- const envMoreAction: ActionsItem[] = [
- {
- label: t('common.export'),
- eventTag: 'export',
- },
- {
- isDivider: true,
- },
- {
- label: t('common.delete'),
- danger: true,
- eventTag: 'delete',
- },
- ];
+ const envMoreAction = (isMock: boolean | undefined) => {
+ return [
+ {
+ label: t('common.export'),
+ eventTag: 'export',
+ },
+ {
+ isDivider: true,
+ },
+ {
+ label: t('common.delete'),
+ danger: true,
+ eventTag: 'delete',
+ disabled: isMock,
+ },
+ ];
+ };
// 全局参数/环境 MoreAction
const allMoreAction: ActionsItem[] = [