next/router: 如何从 Router 或 withRouter 访问 referer?
next/router: How to access referer from either Router or withRouter?
import Router, { withRouter } from "next/router";
是否可以从 Router.x 或 props.router.y 访问引荐来源网址(先前的 url 值)属性?
不,您不可能必须使用全局状态(redux、localStorage....)跟踪以前访问过的页面
import Router, { withRouter } from "next/router";
是否可以从 Router.x 或 props.router.y 访问引荐来源网址(先前的 url 值)属性?
不,您不可能必须使用全局状态(redux、localStorage....)跟踪以前访问过的页面