fix back button

This commit is contained in:
Ruslan Kuchumov
2021-09-19 11:35:36 +03:00
parent 787484c1b5
commit fe0f7d5287
3 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@@ -7,3 +7,4 @@ storage
trash.dblite
tika-app.jar
*.tar.gz
*.local

View File

@@ -2,7 +2,7 @@
<v-toolbar dark dense class="fixed-bar" color="blue-grey darken-2">
<template v-if="title">
<v-btn icon @click="goHome()">
<v-btn icon @click="goBack()">
<v-icon>mdi-arrow-left</v-icon>
</v-btn>
@@ -15,7 +15,7 @@
</template>
<template v-else>
<v-btn icon @click="goBack()">
<v-btn icon @click="goHome()">
<v-icon>mdi-trash-can</v-icon>
</v-btn>
@@ -98,7 +98,10 @@ export default {
},
goHome: function() {
this.$router.push({ path: '/' });
if (this.$route.path == '/' && !Object.keys(this.$route.query).length)
return;
this.$router.push({ path: '/', query: {} });
},
onMenuClicked: function(path) {

View File

@@ -98,7 +98,7 @@
</v-row>
<v-row>
<v-col>
<vue-editor v-model="paper.notes" :editorToolbar="notesToolbar" style="color:black"></vue-editor>
<vue-editor v-model="paper.notes" placeholder="Notes" :editorToolbar="notesToolbar" style="color:black"></vue-editor>
</v-col>
</v-row>