张延森 vor 3 Jahren
Ursprung
Commit
0902b2717d
3 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. BIN
      public/f.png
  2. 3
    1
      src/layouts/UserLayout.jsx
  3. 1
    1
      src/pages/document.ejs

BIN
public/f.png Datei anzeigen


+ 3
- 1
src/layouts/UserLayout.jsx Datei anzeigen

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

+ 1
- 1
src/pages/document.ejs Datei anzeigen

8
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
8
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
9
     />
9
     />
10
     <title>云致科技</title>
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
   </head>
12
   </head>
13
   <body>
13
   <body>
14
     <noscript>请启用 JavaScript 并使用现代浏览器 !</noscript>
14
     <noscript>请启用 JavaScript 并使用现代浏览器 !</noscript>