• React路由页面刷新404

    nginx配置 跟vue的配置差不多, Vue路由页面刷新404问题:https://www.blyoo.com/2934.html server { ... location / { try_files $uri /index.html; } }

    伴侣哟 2019-06-06 Learn 1305

  • antd react-router 导航菜单刷新高亮

    我当前版本 "antd": "^3.16.5", "react": "^16.8.6", "react-router": "^5.0.0", 刷新高亮当前导航位置 app.js 注意一些点: withRouter需被包含在<Router>里,否则会报错的 import React, {Component} from 'react'; import {BrowserRouter as R…

    伴侣哟 2019-05-17 Learn 2832

  • Attempted import error: ‘Link’ is not exported from ‘react-router’.

    根据官方文档这么引入 import { Router, Route, Link } from 'react-router' 但是,报这个错误:Attempted import error: 'Link' is not exported from 'react-router'. 需要这么做 安装react-router-dom npm i react-router-dom -S 引入 import …

    伴侣哟 2019-04-26 Learn 2632