mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
Fix typo
This commit is contained in:
parent
1d77431db0
commit
a0c4709777
@ -1,7 +1,5 @@
|
||||
export default function ({ store, redirect, error }) {
|
||||
// If user not connected, redirect to /
|
||||
export default function ({ store, error }) {
|
||||
if (!store.state.authUser) {
|
||||
// return redirect('/')
|
||||
error({
|
||||
message: 'You are not connected',
|
||||
statusCode: 403
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<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>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user