Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ebc1013c89
|
@ -155,6 +155,11 @@
|
||||||
created() {
|
created() {
|
||||||
this.getEnvironments();
|
this.getEnvironments();
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
projectId() {
|
||||||
|
return this.$store.state.projectId
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addPre() {
|
addPre() {
|
||||||
let jsr223PreProcessor = createComponent("JSR223PreProcessor");
|
let jsr223PreProcessor = createComponent("JSR223PreProcessor");
|
||||||
|
@ -210,7 +215,8 @@
|
||||||
|
|
||||||
getEnvironments() {
|
getEnvironments() {
|
||||||
this.environments = [];
|
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 = response.data;
|
||||||
this.environments.forEach(environment => {
|
this.environments.forEach(environment => {
|
||||||
parseEnvironment(environment);
|
parseEnvironment(environment);
|
||||||
|
|
Loading…
Reference in New Issue