mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 04:04:04 +08:00
update files
This commit is contained in:
parent
52784b0ff6
commit
22714863d0
@ -47,8 +47,6 @@ module.exports = Vue.component('app-configure', {
|
|||||||
var base = this.$refs.base;
|
var base = this.$refs.base;
|
||||||
|
|
||||||
if (base.isValid()) {
|
if (base.isValid()) {
|
||||||
this.showPopup = false;
|
|
||||||
|
|
||||||
// add
|
// add
|
||||||
this.configure.projects.push({
|
this.configure.projects.push({
|
||||||
name: this.name,
|
name: this.name,
|
||||||
@ -60,11 +58,14 @@ module.exports = Vue.component('app-configure', {
|
|||||||
// active index
|
// active index
|
||||||
var index = Math.max(0, this.configure.projects.length - 1);
|
var index = Math.max(0, this.configure.projects.length - 1);
|
||||||
|
|
||||||
// clean
|
|
||||||
base.$emit('reset-input');
|
|
||||||
// send message
|
// send message
|
||||||
this.$dispatch('change-active', index, true);
|
this.$dispatch('change-active', index, true);
|
||||||
this.$dispatch('save-configure');
|
this.$dispatch('save-configure');
|
||||||
|
|
||||||
|
// hide popup
|
||||||
|
this.showPopup = false;
|
||||||
|
// clean
|
||||||
|
base.$emit('reset-input');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user