- 博客(8)
- 收藏
- 关注
原创 > git push Unable to negotiate with 118.31.165.50 port 22: no match
Unable to negotiate with 118.31.165.50 port 22: no matching host key type found. Their offer: ssh-rsafatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
2022-06-10 09:50:15
197
原创 react的umi路由鉴权
wrappers是umi中用于路由鉴权的路由中设置export default { routes: [ { path: '/user', component: 'user', wrappers: [ '@/wrappers/auth', ], }, { path: '/login', component: 'login' }, ]}然后然后在 src/wrappers/auth 中,export default
2022-05-18 13:46:54
1169
1
原创 react的打包后项目运行
1.首先需要安装node2.使用npm命令行来安装serve npm install -g serve3. 安装完成后,使用 serve -s .\dist 进入文件文件目录就可以了
2022-05-10 10:49:47
574
原创 react的函数式组件的路由跳转不自动到顶部解决
再layout组件中添加 //解决页面不自动跳转顶部 useEffect(() => { if (document && history?.location?.pathname != '/home') { // 可以排除不需要置顶的页面 if (document?.documentElement || document?.body) { document.documentElement.scrollTop = do...
2022-04-20 20:01:35
860
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人