Updated: electron version & fixed smms pic type

This commit is contained in:
Molunerfinn
2018-08-08 11:21:08 +08:00
parent 4ab782e8dc
commit d4c04ee1e6
5 changed files with 27 additions and 6 deletions

View File

@@ -103,10 +103,18 @@ export default {
},
created () {
this.getGallery()
this.$electron.ipcRenderer.on('updateGallery', (event) => {
this.filterList = this.getGallery()
})
},
computed: {
filterList (val) {
return this.getGallery()
filterList: {
get () {
return this.getGallery()
},
set (val) {
return this.val
}
}
},
methods: {
@@ -264,6 +272,9 @@ export default {
toggleHandleBar () {
this.handleBarActive = !this.handleBarActive
}
},
beforeDestroy () {
this.$electron.ipcRenderer.removeAllListeners('updateGallery')
}
}
</script>