小编mud*_*udu的帖子

在nextjs中从_error.js中的getInitialProps重定向?

有什么方法可以从nextjs的_error.js中的getInitialProps重定向到另一个url ?

已经试过 res.redirect('/'); 在 getInitialProps 里面。

它给 TypeError: res.redirect is not a function

next.js

1
推荐指数
1
解决办法
3673
查看次数

标签 统计

next.js ×1