We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
袁老师,umi升级3.0后配置title:true会报错 现在要在配置式约定中配置或者使用react-helment配置了吗
The text was updated successfully, but these errors were encountered:
title Type: string Default: '' 配置标题。
比如:
export default { title: 'hi', } 此外,你还可以针对路由配置标题,比如,
export default { title: 'hi', routes: [ { path: '/', title: 'Home' }, { path: '/users', title: 'Users' }, { path: '/foo', }, ], } 然后我们访问 / 标题是 Home,访问 /users 标题是 Users,访问 /foo 标题是默认的 hi。
注意:
默认不会在 HTML 里输出 <title> 标签,通过动态渲染得到 配 exportStatic 后会为每个 HTML 输出 <title> 标签 如果需要自行通过 react-helment 等方式渲染 title,配 title: false 可禁用内置的 title 渲染机制
Sorry, something went wrong.
No branches or pull requests
袁老师,umi升级3.0后配置title:true会报错
现在要在配置式约定中配置或者使用react-helment配置了吗
The text was updated successfully, but these errors were encountered: