Merge remote-tracking branch 'origin/master'

This commit is contained in:
Captain.B 2021-03-24 17:54:07 +08:00
commit ebc1013c89
1 changed files with 7 additions and 1 deletions

View File

@ -155,6 +155,11 @@
created() {
this.getEnvironments();
},
computed: {
projectId() {
return this.$store.state.projectId
},
},
methods: {
addPre() {
let jsr223PreProcessor = createComponent("JSR223PreProcessor");
@ -210,7 +215,8 @@
getEnvironments() {
this.environments = [];
this.$get('/api/environment/list/' + getCurrentProjectID(), response => {
let id = this.request.projectId ? this.request.projectId : this.projectId;
this.$get('/api/environment/list/' + id, response => {
this.environments = response.data;
this.environments.forEach(environment => {
parseEnvironment(environment);