mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 01:27:47 +08:00
update files
This commit is contained in:
@@ -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>
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user