Skip to content

Commit

Permalink
fix: docs redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
zuolung committed Nov 4, 2021
1 parent 1dbd9e7 commit e2b12c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/vantui-demo/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ export default class Index extends Component {
componentDidMount() {
function getUrl(path: string) {
let url = `/pages${path}/index`
const devGuidePaths = ['/home', '/quickstart', '/custom-style', '/theme']
const devGuidePaths = [
'/home',
'/quickstart',
'/custom-style',
'/theme',
'/use-in-react',
]
if (devGuidePaths.includes(path)) {
url = `/pages/dashboard/index`
}
Expand Down

0 comments on commit e2b12c7

Please sign in to comment.