diff --git a/backend/src/main/java/io/metersphere/xmind/template/xmind.xml b/backend/src/main/java/io/metersphere/xmind/template/xmind.xml index 1da2695496..db092ebf51 100644 Binary files a/backend/src/main/java/io/metersphere/xmind/template/xmind.xml and b/backend/src/main/java/io/metersphere/xmind/template/xmind.xml differ diff --git a/backend/src/main/java/io/metersphere/xmind/template/xmind_custom_id.xml b/backend/src/main/java/io/metersphere/xmind/template/xmind_custom_id.xml index 7d546922d6..ef203c51cf 100644 Binary files a/backend/src/main/java/io/metersphere/xmind/template/xmind_custom_id.xml and b/backend/src/main/java/io/metersphere/xmind/template/xmind_custom_id.xml differ diff --git a/backend/src/main/java/io/metersphere/xmind/template/xmind_system_id.xml b/backend/src/main/java/io/metersphere/xmind/template/xmind_system_id.xml index 9da1531d3a..79fd86dae7 100644 Binary files a/backend/src/main/java/io/metersphere/xmind/template/xmind_system_id.xml and b/backend/src/main/java/io/metersphere/xmind/template/xmind_system_id.xml differ diff --git a/backend/src/main/java/io/metersphere/xmind/template/xmind_update.xml b/backend/src/main/java/io/metersphere/xmind/template/xmind_update.xml index f60b751b35..b1eaf4d1e6 100644 Binary files a/backend/src/main/java/io/metersphere/xmind/template/xmind_update.xml and b/backend/src/main/java/io/metersphere/xmind/template/xmind_update.xml differ diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue index 1a57f13961..eb93588115 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseHeader.vue @@ -50,7 +50,7 @@ :project-id="projectId" :is-read-only="isReadOnly" :useEnvironment='useEnvironment' - @setEnvironment="setEnvironment"/> + @setEnvironment="setEnvironment" ref="environmentSelect"/> @@ -106,6 +106,9 @@ }, }, methods: { + refreshEnvironment(){ + this.$refs.environmentSelect.refreshEnvironment(); + }, setEnvironment(data) { this.$emit('setEnvironment', data.id); }, @@ -124,6 +127,7 @@ }, addCase() { this.$emit('addCase'); + this.refreshEnvironment(); }, getColor(enable, method) { if (enable) { diff --git a/frontend/src/business/components/api/definition/components/case/MsEnvironmentSelect.vue b/frontend/src/business/components/api/definition/components/case/MsEnvironmentSelect.vue index b1319ac3b7..dcc8401bb2 100644 --- a/frontend/src/business/components/api/definition/components/case/MsEnvironmentSelect.vue +++ b/frontend/src/business/components/api/definition/components/case/MsEnvironmentSelect.vue @@ -54,6 +54,9 @@ } }, methods: { + refreshEnvironment(){ + this.$emit('setEnvironment', this.environment); + }, getEnvironments() { if (this.projectId) { this.$get('/api/environment/list/' + this.projectId, response => {