Merge pull request #878 from nwind/master

修复 docs.json 路径
This commit is contained in:
吴多益 2020-08-21 17:11:40 +08:00 committed by GitHub
commit 5591a5db4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export default class DocSearch extends React.Component {
this.onSearchCancel = this.onSearchCancel.bind(this); this.onSearchCancel = this.onSearchCancel.bind(this);
} }
componentDidMount() { componentDidMount() {
Axios.get(__uri('../docs.json')) Axios.get(ContextPath + __uri('../docs.json'))
.then(result => { .then(result => {
this.docs = result.data.docs; this.docs = result.data.docs;
}) })