update files

This commit is contained in:
nuintun 2015-11-23 22:41:49 +08:00
parent bf5e598de4
commit 1e705835d0
2 changed files with 13 additions and 0 deletions

View File

@ -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 = '';
} }
} }
}); });

View File

@ -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 (){