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

@@ -15,10 +15,6 @@ require('../components/app-main');
window.addEventListener('DOMContentLoaded', function (){
var app;
function normalize(configure){
return JSON.parse(JSON.stringify(configure));
}
function init(configure){
app = new Vue({
el: '#app',
@@ -42,7 +38,7 @@ window.addEventListener('DOMContentLoaded', function (){
this.activeIndex = index;
},
'save-configure': function (){
ipc.send('app-configure', 'save', normalize(this.configure));
ipc.send('app-configure', 'save', JSON.parse(JSON.stringify(this.configure)));
}
}
});