You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
859 B
34 lines
859 B
import React from "react"
|
|
import style from "./index.module.scss"
|
|
import { useLocation, Route, Switch, useHistory } from "react-router-dom"
|
|
import html from "./a.md"
|
|
|
|
function Test() {
|
|
return <div>test</div>
|
|
}
|
|
|
|
export default function About(props: any) {
|
|
let history = useHistory()
|
|
// let location = useLocation()
|
|
function back(){
|
|
console.log(1231);
|
|
history.replace("/about")
|
|
}
|
|
|
|
// console.log(html)
|
|
|
|
return (
|
|
<div className={`container ${style.about}`}>
|
|
<div className={"bp3-running-text bp3-text-large"}>
|
|
{html}
|
|
</div>
|
|
{/*<div onClick={() =>back()}>阿萨 阿松大asdasd</div>*/}
|
|
{/*<div>22{props.children}{location.href}</div>*/}
|
|
{/*<p>sadsa</p>*/}
|
|
{/*<p>sadsa</p>*/}
|
|
{/*<Route path="/about/aa" exact={true}>*/}
|
|
{/* <Test></Test>*/}
|
|
{/*</Route>*/}
|
|
</div>
|
|
)
|
|
}
|
|
|