diff --git a/frontend/src/views/api-test/scenario/components/scenarioTable.vue b/frontend/src/views/api-test/scenario/components/scenarioTable.vue index ecc5d3bb9c..1a47ce1923 100644 --- a/frontend/src/views/api-test/scenario/components/scenarioTable.vue +++ b/frontend/src/views/api-test/scenario/components/scenarioTable.vue @@ -1124,9 +1124,9 @@ { label: t('apiTestManagement.timeTaskDay'), value: '0 0 0 * * ?' }, ]; - function resetScheduleConfig(record: ApiScenarioTableItem) { + async function resetScheduleConfig(record: ApiScenarioTableItem) { // 初始化资源池 - initResourcePool(); + await initResourcePool(); // 初始化已选择的表格数据 tableRecord.value = record; @@ -1146,7 +1146,7 @@ } scheduleUseNewEnv.value = !!scheduleConfig.value.config.environmentId; // 初始化环境 - initEnvList(); + await initEnvList(); // 初始化弹窗标题 if (tableRecord.value.scheduleConfig) { @@ -1156,8 +1156,8 @@ } } - function openScheduleModal(record: ApiScenarioTableItem) { - resetScheduleConfig(record); + async function openScheduleModal(record: ApiScenarioTableItem) { + await resetScheduleConfig(record); showScheduleModal.value = true; } async function deleteScenarioSchedule(scenarioId: string) { diff --git a/frontend/src/views/project-management/environmental/locale/en-US.ts b/frontend/src/views/project-management/environmental/locale/en-US.ts index 7681e939cb..d2a5c74261 100644 --- a/frontend/src/views/project-management/environmental/locale/en-US.ts +++ b/frontend/src/views/project-management/environmental/locale/en-US.ts @@ -53,8 +53,8 @@ export default { 'project.environmental.http.copy': 'Copy HTTP', 'project.environmental.http.hostName': 'Host Name', 'project.environmental.http.hostNameRequired': 'Host name is required', - 'project.environmental.http.httpHostNamePlaceholder': 'For example: http://127.0.0.1', - 'project.environmental.http.httpsHostNamePlaceholder': 'For example: https://127.0.0.1', + 'project.environmental.http.httpHostNamePlaceholder': 'For example: 127.0.0.1', + 'project.environmental.http.httpsHostNamePlaceholder': 'For example: 127.0.0.1', 'project.environmental.http.selectApiModule': 'Select interface module', 'project.environmental.http.applyModule': 'Apply Module', 'project.environmental.http.enableCondition': 'Enable Condition', diff --git a/frontend/src/views/project-management/environmental/locale/zh-CN.ts b/frontend/src/views/project-management/environmental/locale/zh-CN.ts index d44c8f5eec..4834f92c15 100644 --- a/frontend/src/views/project-management/environmental/locale/zh-CN.ts +++ b/frontend/src/views/project-management/environmental/locale/zh-CN.ts @@ -58,8 +58,8 @@ export default { 'project.environmental.http.copy': '复制HTTP', 'project.environmental.http.hostName': '域名', 'project.environmental.http.hostNameRequired': '域名必填', - 'project.environmental.http.httpHostNamePlaceholder': '例如:http://127.0.0.1', - 'project.environmental.http.httpsHostNamePlaceholder': '例如:https://127.0.0.1', + 'project.environmental.http.httpHostNamePlaceholder': '例如:127.0.0.1', + 'project.environmental.http.httpsHostNamePlaceholder': '例如:127.0.0.1', 'project.environmental.http.applyModule': '应用模块', 'project.environmental.http.selectApiModule': '选择接口模块', 'project.environmental.http.enableCondition': '启用条件',