ant design pro2.0/umijs(react)站点配置到非站点根目录下处理

1.config/config.js中javascript export default {中加上以下:html history: 'hash', //采用hash路由:#/xxx的形式java base:'./',ajax publicPath:'./',less (会自动将/static/xxx.jpg之类的和umi.js中的a.p="/"及index.html中window.routerBa
相关文章
相关标签/搜索