Fix reload button

This commit is contained in:
NBTX
2019-08-24 18:16:52 +01:00
parent b678d848db
commit 8d35e7d3bd

View File

@@ -4,7 +4,7 @@
<h2>{{ error.message }}</h2>
<br>
<p><nuxt-link to="/"><button>Go Home</button></nuxt-link></p>
<p><a :href="base">Reload</a></p>
<p><a href="" @click.prevent="reloadApplication">Reload</a></p>
</div>
</template>
@@ -22,14 +22,12 @@
</style>
<script>
import { routerBase } from '../nuxt.config';
export default {
props: ['error'],
data () {
return {
base: routerBase.router.base
methods: {
reloadApplication () {
this.$router.push('/', () => window.location.reload());
}
},