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

@@ -3,7 +3,7 @@
:project="project"
:unique-projects.sync="uniqueProjects">
</project-configure>
<div class="ui-project-stage">
<div v-show="project.name && project.path" class="ui-project-stage">
<div class="ui-control-bar fn-clear">
<div class="ui-control-operate fn-left">
<a title="删除项目" href="javascript:;" @click="remove"><i class="icon-trash"></i></a>

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);