update files

This commit is contained in:
Nuintun
2015-11-20 17:45:23 +08:00
parent b31cda4eab
commit 37587ea685
5 changed files with 33 additions and 18 deletions

View File

@@ -15,15 +15,19 @@ require('../components/project-base');
require('../components/dynamic-item');
window.addEventListener('DOMContentLoaded', function (){
function normalize(configure){
return JSON.parse(JSON.stringify(configure));
}
var app = new Vue({
el: '#app',
data: {
activeIndex: 0,
configure: { projects: [] }
configure: {}
},
events: {
'save-configure': function (){
ipc.send('app-configure', 'save', normalize(this.configure));
}
}
});