refactor(接口测试): 环境变更后同步更新场景域名
This commit is contained in:
parent
acaf562ce2
commit
4fab6f7930
|
@ -140,6 +140,7 @@
|
|||
@setProjectEnvMap="setProjectEnvMap"
|
||||
@setEnvGroup="setEnvGroup"
|
||||
@showPopover="showPopover"
|
||||
@saveRefresh="setDomain"
|
||||
:has-option-group="true"
|
||||
ref="envPopover"
|
||||
class="ms-message-right" />
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
:env-map="envMap"
|
||||
:project-list="projectList"
|
||||
@close="visible = false"
|
||||
@saveRefresh="saveRefresh"
|
||||
@setProjectEnvMap="setProjectEnvMap"
|
||||
v-show="!radio || radio === ENV_TYPE.JSON"
|
||||
:btnStyle="btnStyle"
|
||||
|
@ -184,6 +185,9 @@ export default {
|
|||
radioChange(val) {
|
||||
this.$emit('update:environmentType', val);
|
||||
},
|
||||
saveRefresh() {
|
||||
this.$emit('saveRefresh');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</el-button>
|
||||
|
||||
<!-- 环境配置 -->
|
||||
<api-environment-config ref="environmentConfig" @close="environmentConfigClose" />
|
||||
<api-environment-config ref="environmentConfig" @saveRefresh="environmentConfigClose" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -215,7 +215,7 @@ export default {
|
|||
return true;
|
||||
},
|
||||
environmentConfigClose() {
|
||||
// todo 关闭处理
|
||||
this.$emit('saveRefresh');
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -245,6 +245,7 @@ export default {
|
|||
},
|
||||
save() {
|
||||
this.$refs.environmentEdit.save();
|
||||
this.$emit('saveRefresh');
|
||||
},
|
||||
close() {
|
||||
this.$emit('close');
|
||||
|
|
Loading…
Reference in New Issue