Skip to content

Commit

Permalink
fix: withRouter 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yupeng12 committed May 22, 2024
1 parent a5bcbe3 commit 0709831
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 347 deletions.
3 changes: 3 additions & 0 deletions examples/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from 'amis';
import {eachTree} from 'amis-core';
import 'amis-ui/lib/locale/en-US';
import {withRouter} from 'react-router-dom';
// @ts-ignore
import DocSearch from './DocSearch';
import Doc from './Doc';
Expand Down Expand Up @@ -141,6 +142,8 @@ class BackTop extends React.PureComponent {
}
}

// @ts-ignore
@withRouter
export class App extends React.PureComponent<{
location: Location;
}> {
Expand Down
Loading

0 comments on commit 0709831

Please sign in to comment.