fix(接口测试): 修复环境下拉框数据没有刷新的缺陷
--bug=1021366 --user=王孝刚 【接口测试】在接口TEST/CASE等页面更新环境后,接口定义右上角的环境下拉框没更新 https://www.tapd.cn/55049933/s/1321539
This commit is contained in:
parent
648cc80439
commit
6ab04cef70
|
@ -8,6 +8,7 @@
|
|||
:placeholder="$t('api_test.definition.request.run_env')"
|
||||
clearable
|
||||
filterable
|
||||
@click.native="refreshEnv"
|
||||
@clear="clear">
|
||||
<el-option
|
||||
v-for="(environment, key) in environments"
|
||||
|
@ -66,6 +67,9 @@ export default {
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
refreshEnv() {
|
||||
this.getEnvironments();
|
||||
},
|
||||
refreshEnvironment() {
|
||||
this.$emit('setEnvironment', this.environment);
|
||||
},
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
class="ms-htt-width"
|
||||
:placeholder="$t('api_test.definition.request.run_env')"
|
||||
filterable
|
||||
@click.native="refreshEnv"
|
||||
@change="environmentChange"
|
||||
clearable>
|
||||
<el-option
|
||||
|
@ -54,6 +55,9 @@ export default {
|
|||
this.getEnvironments();
|
||||
},
|
||||
methods: {
|
||||
refreshEnv() {
|
||||
this.getEnvironments();
|
||||
},
|
||||
getEnvironments() {
|
||||
if (this.projectId) {
|
||||
getEnvironmentByProjectId(this.projectId).then((response) => {
|
||||
|
|
Loading…
Reference in New Issue