update files

This commit is contained in:
nuintun
2015-11-23 16:12:00 +08:00
parent ea69932db8
commit 034871ef5d
8 changed files with 64 additions and 28 deletions

View File

@@ -10,7 +10,7 @@
<i class="icon-export"></i>
</a>
</div>
<div v-show="popup" class="ui-popup">
<div v-show="showPopup" class="ui-popup">
<div class="ui-popup-arrow">
<em></em>
<span></span>

View File

@@ -30,7 +30,7 @@ module.exports = Vue.component('app-configure', {
name: '',
path: '',
submitError: '',
popup: false
showPopup: false
}
},
methods: {
@@ -43,9 +43,9 @@ module.exports = Vue.component('app-configure', {
ipc.send('app-configure', command, configure);
},
popupToggle: function (){
this.popup = !this.popup;
this.showPopup = !this.showPopup;
if (!this.popup) {
if (!this.showPopup) {
this.name = '';
this.path = '';
this.submitError = '';
@@ -59,7 +59,7 @@ module.exports = Vue.component('app-configure', {
if (this.uniqueProjects[this.name]) {
this.submitError = '项目已存在';
} else {
this.popup = false;
this.showPopup = false;
this.configure.projects.push({ name: this.name, path: this.path });
// clean imput