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

页面版权信息显示,判断逻辑错误。 #4585

Closed
totemtec opened this issue Jun 22, 2019 · 3 comments
Closed

页面版权信息显示,判断逻辑错误。 #4585

totemtec opened this issue Jun 22, 2019 · 3 comments

Comments

@totemtec
Copy link

默认生成的项目模版里
文件:src/layouts/BasicLayout.tsx

`const footerRender: BasicLayoutProps['footerRender'] = (_, defaultDom) => {

if (!isAntDesignPro()) {
return defaultDom;
}

return (
<>
{defaultDom}
...
</>
`

如果不是AntDesignPro网站,显示默认的版权信息。。。。
另外第二个defaultDom也不应该出现

@chenshuai2144
Copy link
Collaborator

这是正常的,故意显示的版权信息。
再 pro 的官网还会显示 netlify 的 logo

@totemtec
Copy link
Author

这里建议还是提示一下,全文检索了都没找到版权字符串写在了哪里
defaultDom是加密了还是从服务器请求回来的?
看以前的教程,这块是明文

@chenshuai2144
Copy link
Collaborator

在layout组件中 你可以读一下我们的发布文档

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