From 22714863d0527361a268bdfaa9405b335ef4abf2 Mon Sep 17 00:00:00 2001 From: nuintun Date: Thu, 14 Jan 2016 17:36:02 +0800 Subject: [PATCH] update files --- static/js/components/app-configure/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/static/js/components/app-configure/index.js b/static/js/components/app-configure/index.js index 36e5dd3..2bbcad6 100644 --- a/static/js/components/app-configure/index.js +++ b/static/js/components/app-configure/index.js @@ -47,8 +47,6 @@ module.exports = Vue.component('app-configure', { var base = this.$refs.base; if (base.isValid()) { - this.showPopup = false; - // add this.configure.projects.push({ name: this.name, @@ -60,11 +58,14 @@ module.exports = Vue.component('app-configure', { // active index var index = Math.max(0, this.configure.projects.length - 1); - // clean - base.$emit('reset-input'); // send message this.$dispatch('change-active', index, true); this.$dispatch('save-configure'); + + // hide popup + this.showPopup = false; + // clean + base.$emit('reset-input'); } } },