张延森 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,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 Datei anzeigen

@@ -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>