https://github.com/umijs/umi/blob/master/examples/ant-design-pro/src/app.tsx#L38
设置 config.ts
base: '/demo/'
代码中获取 history.location.pathname 会携带 base
history.location.pathname => '/demo/user/login'
lskq00tm1#
#9529
1条答案
按热度按时间lskq00tm1#
#9529