♻️ (go back) go home instead of go back

This commit is contained in:
Julien Calixte
2021-04-25 17:03:53 +02:00
parent e0981950d6
commit 2550ec83f7
2 changed files with 15 additions and 4 deletions

View File

@@ -11,10 +11,13 @@ import { useRouter } from 'vue-router'
export default defineComponent({
name: 'GoBack',
setup() {
const { go } = useRouter()
const { push } = useRouter()
return {
back: () => go(-1)
back: () =>
push({
name: 'Home'
})
}
}
})