Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置了base,默认打开跟路由Page Not Found #305

Closed
ytudt opened this issue Jan 14, 2021 · 3 comments
Closed

设置了base,默认打开跟路由Page Not Found #305

ytudt opened this issue Jan 14, 2021 · 3 comments

Comments

@ytudt
Copy link

ytudt commented Jan 14, 2021

.fatherrc.js配置了base: '/fe',本地启动服务默认跳到'/'而不是跳到'/base'导致页面现实Page Not Found。如何解决

@PeachScript
Copy link
Member

.fattherrc 没有 base 这个配置项

@ytudt
Copy link
Author

ytudt commented Jan 15, 2021

.fattherrc 没有 base 这个配置项

有的呀,传给doc配置项,如下

export default {
...
doc: {
title: 'xu_ui',
themeConfig: { mode: 'light' },
base: '/galaxy/happy-ui',
dest: 'docsite',
},
...
}

@PeachScript
Copy link
Member

docz 目前不再建议直接使用内置版本,可以 father-build + docz 的形式,或者迁移到 dumi:#241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants