mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
Fix typo
This commit is contained in:
parent
1d77431db0
commit
a0c4709777
@ -1,7 +1,5 @@
|
|||||||
export default function ({ store, redirect, error }) {
|
export default function ({ store, error }) {
|
||||||
// If user not connected, redirect to /
|
|
||||||
if (!store.state.authUser) {
|
if (!store.state.authUser) {
|
||||||
// return redirect('/')
|
|
||||||
error({
|
error({
|
||||||
message: 'You are not connected',
|
message: 'You are not connected',
|
||||||
statusCode: 403
|
statusCode: 403
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Super secret page</h1>
|
<h1>Super secret page</h1>
|
||||||
<p>If you try to access this URL not connected, you will be redirected to the home page (server-side or client-side)</p>
|
<p>If you try to access this URL not connected, you will see the error page telling your that you are not connected.</p>
|
||||||
<nuxt-link to="/">Back to the home page</nuxt-link>
|
<nuxt-link to="/">Back to the home page</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user