Fix reload button
This commit is contained in:
parent
b678d848db
commit
8d35e7d3bd
1 changed files with 4 additions and 6 deletions
|
|
@ -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());
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue