1.修改底部版权信息
//layout/BasicLayout.tsx
const defaultFooterDom = (
<DefaultFooter
copyright={`${new Date().getFullYear()} 青融商城`}
//这里改成null
links={null}
/>
);
//layout/UserLayout.tsx
{/* <DefaultFooter /> */}
将DefaultFooter 标签删除
2.修改启动页图标
pages/document.ejs
<div
style="
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
min-height: 420px;
"
>
//这里展示启动页
<img src="<%= context.config.publicPath +'logolest.png'%>" alt="logo" width="256" />
<div class="page-loading-warp">
<div class="ant-spin ant-spin-lg ant-spin-spinning">
<span class="ant-spin-dot ant-spin-dot-spin"
><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i
><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i
></span>
</div>
</div>
<div style="display: flex; align-items: center; justify-content: center">
//这里是修改浏览器上方标题和图标
<img
src="<%= context.config.publicPath +'logolest.png'%>"
width="32"
style="margin-right: 8px"
/>
青融商城
</div>
3.修改登录的头部文字
//locales/zh-Cn/pages.ts
'pages.layouts.userLayout.title': '青融商城后台管理系统',
4.设置登录的logo和标题
layout/userLayout.tsx
<div className={styles.header}>
<Link to="/">
//设置登陆的logo和标题
<img alt="logo" className={styles.logo} src={logo} />
<span className={styles.title}>青融商城</span>
</Link>
</div>