使用: "react-router": "^2.0.0","react-router-relay": "^0.9.0", 当我在父路径下推送任何链接时,对于每个新的router.push调用,父路径都会在URL栏中重复一次. // http://localhost:3000router.push('auth/profile')//
"react-router": "^2.0.0", "react-router-relay": "^0.9.0",
当我在父路径下推送任何链接时,对于每个新的router.push调用,父路径都会在URL栏中重复一次.
// http://localhost:3000 router.push('auth/profile') // http://localhost:3000/auth/profile router.push('auth/profile') // http://localhost:3000/auth/auth/profile router.push('auth/browse') // http://localhost:3000/auth/auth/auth/browse
当我记录位置(来自react-router)时,它不显示重复项.也许浏览器将父路径推送到基本名称?
更改router.push('auth/profile')
至
router.push('/auth/profile')
修好了.