mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 12:14:03 +08:00
update files
This commit is contained in:
parent
c7a4f0246b
commit
4608033522
@ -49,6 +49,7 @@ module.exports = Vue.component('app-configure', {
|
|||||||
if (base.isValid()) {
|
if (base.isValid()) {
|
||||||
this.showPopup = false;
|
this.showPopup = false;
|
||||||
|
|
||||||
|
// add
|
||||||
this.configure.projects.push({
|
this.configure.projects.push({
|
||||||
name: this.name,
|
name: this.name,
|
||||||
path: this.path,
|
path: this.path,
|
||||||
@ -56,10 +57,13 @@ module.exports = Vue.component('app-configure', {
|
|||||||
command: []
|
command: []
|
||||||
});
|
});
|
||||||
|
|
||||||
// clean input
|
// active index
|
||||||
|
var index = Math.max(0, this.configure.projects.length - 1);
|
||||||
|
|
||||||
|
// clean
|
||||||
base.$emit('reset-input');
|
base.$emit('reset-input');
|
||||||
// send message
|
// send message
|
||||||
this.$dispatch('change-active', this.configure.projects.length - 1, true);
|
this.$dispatch('change-active', index, true);
|
||||||
this.$dispatch('save-configure');
|
this.$dispatch('save-configure');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user