1.修改底部版权信息

  1. //layout/BasicLayout.tsx
  2. const defaultFooterDom = (
  3. <DefaultFooter
  4. copyright={`${new Date().getFullYear()} 青融商城`}
  5. //这里改成null
  6. links={null}
  7. />
  8. );
  1. //layout/UserLayout.tsx
  2. {/* <DefaultFooter /> */}

DefaultFooter 标签删除

image.png

2.修改启动页图标

  1. pages/document.ejs
  2. <div
  3. style="
  4. display: flex;
  5. flex-direction: column;
  6. align-items: center;
  7. justify-content: center;
  8. height: 100%;
  9. min-height: 420px;
  10. "
  11. >
  12. //这里展示启动页
  13. <img src="<%= context.config.publicPath +'logolest.png'%>" alt="logo" width="256" />
  14. <div class="page-loading-warp">
  15. <div class="ant-spin ant-spin-lg ant-spin-spinning">
  16. <span class="ant-spin-dot ant-spin-dot-spin"
  17. ><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i
  18. ><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i
  19. ></span>
  20. </div>
  21. </div>
  22. <div style="display: flex; align-items: center; justify-content: center">
  23. //这里是修改浏览器上方标题和图标
  24. <img
  25. src="<%= context.config.publicPath +'logolest.png'%>"
  26. width="32"
  27. style="margin-right: 8px"
  28. />
  29. 青融商城
  30. </div>

3.修改登录的头部文字

  1. //locales/zh-Cn/pages.ts
  2. 'pages.layouts.userLayout.title': '青融商城后台管理系统',

4.设置登录的logo和标题

  1. layout/userLayout.tsx
  2. <div className={styles.header}>
  3. <Link to="/">
  4. //设置登陆的logo和标题
  5. <img alt="logo" className={styles.logo} src={logo} />
  6. <span className={styles.title}>青融商城</span>
  7. </Link>
  8. </div>