mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 03:55:33 +08:00
update files
This commit is contained in:
parent
185f2f9a42
commit
cb171fb9cf
@ -65,7 +65,14 @@ module.exports = Vue.component('project-configure', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
cancel: function (){
|
cancel: function (){
|
||||||
|
var origin = JSON.parse(JSON.stringify(this.project));
|
||||||
|
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
this.project = { name: '', path: '', env: [], command: [] };
|
||||||
|
|
||||||
|
this.$nextTick(function (){
|
||||||
|
this.project = origin;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
@ -73,5 +80,8 @@ module.exports = Vue.component('project-configure', {
|
|||||||
this.submitError = '';
|
this.submitError = '';
|
||||||
this.$broadcast('clean-error');
|
this.$broadcast('clean-error');
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
created: function (){
|
||||||
|
window.app = this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user