update files

This commit is contained in:
nuintun 2015-11-23 18:15:25 +08:00
parent 4211853575
commit 185f2f9a42

View File

@ -35,12 +35,7 @@ module.exports = Vue.component('app-main', {
},
computed: {
project: function (){
var project = this.projects[this.activeIndex] || {
name: '',
path: '',
env: [],
command: []
};
var project = JSON.parse(JSON.stringify(this.projects[this.activeIndex]));
if (!project.env) {
project.env = [];