From cb171fb9cf2bf60bc0a728984656247d80d6661a Mon Sep 17 00:00:00 2001 From: nuintun Date: Mon, 23 Nov 2015 18:47:13 +0800 Subject: [PATCH] update files --- static/js/components/project-configure/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/js/components/project-configure/index.js b/static/js/components/project-configure/index.js index 119e580..c686835 100644 --- a/static/js/components/project-configure/index.js +++ b/static/js/components/project-configure/index.js @@ -65,7 +65,14 @@ module.exports = Vue.component('project-configure', { } }, cancel: function (){ + var origin = JSON.parse(JSON.stringify(this.project)); + this.show = false; + this.project = { name: '', path: '', env: [], command: [] }; + + this.$nextTick(function (){ + this.project = origin; + }); } }, events: { @@ -73,5 +80,8 @@ module.exports = Vue.component('project-configure', { this.submitError = ''; this.$broadcast('clean-error'); } + }, + created: function (){ + window.app = this; } });