mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-06 20:08:48 +02:00
Fix:Native back button go back or ask before quitting #52, Fix:Appbar back button
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user