Fixed: sync upload img to gallery

This commit is contained in:
Molunerfinn
2018-08-08 14:39:40 +08:00
parent e0bb8480a2
commit cf504a0173
3 changed files with 14 additions and 6 deletions

View File

@@ -104,7 +104,9 @@ export default {
created () {
this.getGallery()
this.$electron.ipcRenderer.on('updateGallery', (event) => {
this.filterList = this.getGallery()
this.$nextTick(() => {
this.filterList = this.getGallery()
})
})
},
computed: {