Fix:Native back button go back or ask before quitting #52, Fix:Appbar back button

This commit is contained in:
advplyr
2021-12-10 16:31:54 -06:00
parent 6c08e91dfc
commit d3a2c79a55
8 changed files with 42 additions and 7 deletions
+1 -5
View File
@@ -61,11 +61,7 @@ export default {
this.$store.commit('libraries/setShowModal', true)
},
back() {
if (this.$route.name === 'audiobook-id-edit') {
this.$router.push(`/audiobook/${this.$route.params.id}`)
} else {
this.$router.push('/bookshelf')
}
window.history.back()
}
},
mounted() {}