mirror of
https://github.com/nuintun/command-manager.git
synced 2025-11-19 03:27:45 +08:00
update files
This commit is contained in:
@@ -94,6 +94,10 @@ module.exports = Vue.component('dynamic-item', {
|
|||||||
'reset-error': function (){
|
'reset-error': function (){
|
||||||
this.nameError = '';
|
this.nameError = '';
|
||||||
this.valueError = '';
|
this.valueError = '';
|
||||||
|
},
|
||||||
|
'reset-input': function (){
|
||||||
|
this.name = '';
|
||||||
|
this.value = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -64,6 +64,11 @@ module.exports = Vue.component('project-configure', {
|
|||||||
|
|
||||||
// send message
|
// send message
|
||||||
this.$dispatch('edit', util.clone(this.projectClone));
|
this.$dispatch('edit', util.clone(this.projectClone));
|
||||||
|
|
||||||
|
// clean error
|
||||||
|
this.$broadcast('reset-error');
|
||||||
|
// clean input
|
||||||
|
this.$broadcast('reset-input');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -74,6 +79,8 @@ module.exports = Vue.component('project-configure', {
|
|||||||
|
|
||||||
// clean error
|
// clean error
|
||||||
this.$broadcast('reset-error');
|
this.$broadcast('reset-error');
|
||||||
|
// clean input
|
||||||
|
this.$broadcast('reset-input');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
@@ -82,6 +89,8 @@ module.exports = Vue.component('project-configure', {
|
|||||||
|
|
||||||
// clean error
|
// clean error
|
||||||
this.$broadcast('reset-error');
|
this.$broadcast('reset-error');
|
||||||
|
// clean input
|
||||||
|
this.$broadcast('reset-input');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function (){
|
created: function (){
|
||||||
|
|||||||
Reference in New Issue
Block a user