重定向
about.js:
import React, {
Component } from 'react'
import about1 from './about1.js'
import about2 from './about2.js'
import {
Link,Route } from 'react-router-dom'
export default class index extends Component {
componentDidMount(){
// console.log(this.props)
// console.log(this.props.location.search.substring(1).split('&'))
// let params =new URLSearchParams(this.props.location.search)
// console.log(params.get('name'))
// console.log(params.get('age'))
console.log(this.props.match.params.name)
console.