umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.3k stars 2.65k forks source link

[Bug] umi4 login页面title不能正常显示 #9475

Closed Teeoo closed 1 year ago

Teeoo commented 1 year ago

What happens?

login页面title不能正常显示

Mini Showcase Repository(REQUIRED)

https://codesandbox.io/s/intelligent-gates-kgzb2u?file=/.umirc.ts

How To Reproduce

Steps to reproduce the behavior: 1. 2.

export const routes = [
  {
    path: '/auth',
    layout: false,
    routes: [
      {
        path: '/auth/login',
        component: './auth/login',
      }
    ],
  },
  {
    name: '智慧工厂',
    path: '/factory',
    routes: [
      {
        name: '生产管理',
        path: '/factory/production',
        access: 'FactoryProduction',
        routes: [
          {
            name: '检查清单',
            path: '/factory/production/Checklist',
            component: './factory/production/check-list',
            access: 'FactoryProductionChecklist',
          },
          {
            name: '产品分类',
            path: '/factory/production/category',
            component: './factory/production/category',
            access: 'FactoryProductionCategory',
          }
        ]
      },
    ]
  }
];

Expected behavior 1. 2.

Context

github-actions[bot] commented 1 year ago

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

Hexi1997 commented 1 year ago

我也

Teeoo commented 1 year ago

@fz6m https://codesandbox.io/s/intelligent-gates-kgzb2u?file=/.umirc.ts

fz6m commented 1 year ago

到 antd-pro 反馈吧,https://github.com/ant-design/ant-design-pro

暂时的解决办法可以自己设置标题:https://ahooks.js.org/zh-CN/hooks/use-title

Teeoo commented 1 year ago

@fz6m 这个不应该是umi的问题么,咋去pro那边

haohuaZhang commented 3 months ago
image