张延森 3 年之前
父節點
當前提交
0902b2717d
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 二進制
      public/f.png
  2. 3
    1
      src/layouts/UserLayout.jsx
  3. 1
    1
      src/pages/document.ejs

二進制
public/f.png 查看文件


+ 3
- 1
src/layouts/UserLayout.jsx 查看文件

@@ -23,12 +23,14 @@ const UserLayout = (props) => {
23 23
   } = props;
24 24
   // const { formatMessage } = useIntl();
25 25
   const { breadcrumb } = getMenuData(routes);
26
+
26 27
   const title = getPageTitle({
27 28
     pathname: location.pathname,
28
-    formatMessage: (x) => x,
29
+    formatMessage: (x) => (typeof x === 'object' ? x.defaultMessage : x),
29 30
     breadcrumb,
30 31
     ...props,
31 32
   });
33
+
32 34
   return (
33 35
     <HelmetProvider>
34 36
       <Helmet>

+ 1
- 1
src/pages/document.ejs 查看文件

@@ -8,7 +8,7 @@
8 8
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
9 9
     />
10 10
     <title>云致科技</title>
11
-    <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
11
+    <link rel="icon" href="<%= context.config.publicPath +'f.png'%>" type="image/png" />
12 12
   </head>
13 13
   <body>
14 14
     <noscript>请启用 JavaScript 并使用现代浏览器 !</noscript>