11 2021 档案

摘要:BasicLayout是我的父组件,menu.js 配置了所有的子组件路由 如下 父组件路由配置 1 export default [ 2 { 3 path: '/nomatch/:type', 4 component: NoMatch, 5 }, 6 { 7 path: '', 8 compone 阅读全文
posted @ 2021-11-29 11:56 leahtao 阅读(3544) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/63124161/attempted-import-error-switch-is-not-exported-from-react-router-dom Switch 由 Routes 代替 阅读全文
posted @ 2021-11-23 17:45 leahtao 阅读(795) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/63690695/react-redirect-is-not-exported-from-react-router-dom/66985282 react-router-dom 6版本移除了 Redirect,用 Navigati 阅读全文
posted @ 2021-11-23 17:44 leahtao 阅读(1077) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/64936044/fix-the-upstream-dependency-conflict-installing-npm-packages 阅读全文
posted @ 2021-11-11 17:20 leahtao 阅读(1226) 评论(0) 推荐(0)