update files

This commit is contained in:
nuintun
2015-11-23 23:23:40 +08:00
parent f33ddb479b
commit 9771e79e10
6 changed files with 14 additions and 4 deletions

View File

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