mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-21 02:41:23 +08:00
update files
This commit is contained in:
@@ -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