mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Add comment
This commit is contained in:
parent
61ac979cba
commit
ae8700f117
@ -25,6 +25,7 @@ export default context => {
|
|||||||
// create context.next for simulate next() of beforeEach() when wanted to redirect
|
// create context.next for simulate next() of beforeEach() when wanted to redirect
|
||||||
context.redirected = false
|
context.redirected = false
|
||||||
context.next = function (opts) {
|
context.next = function (opts) {
|
||||||
|
// if nuxt generate
|
||||||
if (!context.res) {
|
if (!context.res) {
|
||||||
context.redirected = opts
|
context.redirected = opts
|
||||||
context.nuxt.serverRendered = false
|
context.nuxt.serverRendered = false
|
||||||
|
Loading…
Reference in New Issue
Block a user