Fix reload button
This commit is contained in:
@@ -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());
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user