diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue index 8cae12ede9..2cdec8a53e 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue @@ -9,7 +9,7 @@ - {{ getLable(node.label) }} + {{ getLabel(node.label) }} @@ -67,7 +67,7 @@ export default { } }, methods: { - getLable(label) { + getLabel(label) { switch (label) { case "ConstantTimer": return "等待控制器"; diff --git a/frontend/src/business/components/api/automation/scenario/DebugRun.vue b/frontend/src/business/components/api/automation/scenario/DebugRun.vue index a33ce834b1..5c7fb62ca9 100644 --- a/frontend/src/business/components/api/automation/scenario/DebugRun.vue +++ b/frontend/src/business/components/api/automation/scenario/DebugRun.vue @@ -89,11 +89,11 @@ export default { } saveScenario(url, reqObj, this.runData.hashTree, this, (response) => { // 兼容ui执行提示 - if (url.startsWith("/api") &&response.data!== "SUCCESS") { + if (url.startsWith("/api") && response.data !== "SUCCESS") { this.$error(response.data ? response.data : this.$t('commons.run_fail')); this.$emit('errorRefresh'); } else { - if (!response.success &&response.data!=="SUCCESS") { + if (!response.success && response.data !== "SUCCESS") { this.$error(response.data ? response.data : this.$t('commons.run_fail')); this.$emit('errorRefresh'); } diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 570028cf85..39eff3b7d0 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -678,7 +678,7 @@ export default { node.expanded = !node.expanded; this.pluginOrder(data); }, - plugnOrder(nodes) { + pluginOrder(nodes) { // 兼容历史数据 if (nodes && nodes.type === 'GenericController' && nodes.hashTree) { let data = nodes.hashTree.filter(v => v.type !== "Assertions"); @@ -1322,7 +1322,7 @@ export default { this.isBtnHide = false; // 历史数据兼容处理 if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') { - this.plugnOrder(this.selectedTreeNode); + this.pluginOrder(this.selectedTreeNode); } else { this.sort(); } @@ -1383,7 +1383,7 @@ export default { this.$refs.scenarioApiRelevance.changeButtonLoadingType(); // 历史数据兼容处理 if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') { - this.plugnOrder(this.selectedTreeNode); + this.pluginOrder(this.selectedTreeNode); } else { this.sort(); }