benjycui / bisheng

Transform Markdown(and other static files with transformers) into a SPA website using React.
MIT License
2.9k stars 419 forks source link

bisheng非常严重的bug #193

Closed jinyindu closed 5 years ago

jinyindu commented 5 years ago

bisheng 路由如果配置了多级一直进入404, { path: 'packages/react/components/:children/', component: contentTmpl, }

ycjcl868 commented 5 years ago

有 demo 吗?

jinyindu commented 5 years ago

image image image 我看了一下antd design中 components只有一层,我有个需求 要做成packages包 层级有三层,我这样配置路由一直是404 不知道是bisheng不能支持吗

jinyindu commented 5 years ago

麻烦看一下 我配置的对吗 已经困扰好几天了

jinyindu commented 5 years ago

bisheng的文档好少啊

Renascence commented 5 years ago

多级路由是这样:

{
    path: '/posts/:type/:component/:post',
    dataPath: '/:type/:component/:post',
    component: './template/Post',
 }