update files

This commit is contained in:
nuintun
2015-11-23 22:53:56 +08:00
parent 463b8998e5
commit 26eec2faf6
3 changed files with 22 additions and 24 deletions

View File

@@ -37,17 +37,7 @@ module.exports = Vue.component('app-main', {
},
computed: {
project: function (){
var project = util.clone(this.projects[this.activeIndex]);
if (!project.env) {
project.env = [];
}
if (!project.command) {
project.command = [];
}
return project;
return util.clone(this.projects[this.activeIndex]);
},
command: function (){
return this.project.command.slice(0, 3);