mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-09 23:11:52 +00:00
fix(download): Redirect when there is no gif
This commit is contained in:
parent
d84307dbc4
commit
4e5a57c72c
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ export default {
|
||||||
this.$store.commit('stopDownloading')
|
this.$store.commit('stopDownloading')
|
||||||
this.$router.push({ name: 'capture' })
|
this.$router.push({ name: 'capture' })
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
if (this.downloading.objectUrl === null) {
|
||||||
|
this.$router.push({ name: 'home' })
|
||||||
|
}
|
||||||
|
},
|
||||||
|
destroyed () {
|
||||||
|
this.$store.commit('stopDownloading')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue