mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vue-app): use anchor to /
if route is undefined in error page (#7877)
This commit is contained in:
parent
ec9a78a3d2
commit
10e82b24da
@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
<div class="title">{{ message }}</div>
|
<div class="title">{{ message }}</div>
|
||||||
<p v-if="statusCode === 404" class="description">
|
<p v-if="statusCode === 404" class="description">
|
||||||
<NuxtLink class="error-link" to="/"><%= messages.back_to_home %></NuxtLink>
|
<a v-if="typeof $route === 'undefined'" class="error-link" href="/"><% messages.back_to_home %></a>
|
||||||
|
<NuxtLink v-else class="error-link" to="/"><%= messages.back_to_home %></NuxtLink>
|
||||||
</p>
|
</p>
|
||||||
<% if(debug) { %>
|
<% if(debug) { %>
|
||||||
<p class="description" v-else><%= messages.client_error_details %></p>
|
<p class="description" v-else><%= messages.client_error_details %></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user