From 4508d2a5232690f07fd8cd3c9b5f250af27d68ea Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Tue, 9 Apr 2024 17:41:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=B6=E8=B5=84=E6=BA=90=E6=B1=A0=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E6=9C=AA=E7=BB=99=E9=BB=98=E8=AE=A4=E5=80=BC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1038787 --user=宋天阳 【接口测试】场景列表-创建定时任务-资源池显示为空 https://www.tapd.cn/55049933/s/1492015 --- .../api-test/scenario/components/scenarioTable.vue | 10 +++++----- .../project-management/environmental/locale/en-US.ts | 4 ++-- .../project-management/environmental/locale/zh-CN.ts | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) 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': '启用条件',