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:
@@ -60,7 +60,7 @@ module.exports = Vue.component('app-configure', {
|
||||
this.submitError = '项目已存在';
|
||||
} else {
|
||||
this.showPopup = false;
|
||||
this.configure.projects.push({ name: this.name, path: this.path });
|
||||
this.configure.projects.push({ name: this.name, path: this.path, env: [], command: [] });
|
||||
|
||||
this.submitError = '';
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user