seimin 1 year ago
parent
commit
da8e1c0905
2 changed files with 3 additions and 1 deletions
  1. 1 1
      public/index.html
  2. 2 0
      src/views/AppIndex.vue

+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
4 4
     <meta charset="utf-8">
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 6
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
7
+    <link rel="icon" id="favicon" href="<%= BASE_URL %>favicon.ico">
8 8
     <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
9 9
     <title>业务视图</title>
10 10
   </head>

+ 2 - 0
src/views/AppIndex.vue

@@ -1486,6 +1486,8 @@ export default {
1486 1486
         .then((result) => {
1487 1487
           this.logoTitle = result.sysName || '';
1488 1488
           this.logoUrl = result.logo || '';
1489
+          document.querySelector('#favicon').href = result.favicon || '';
1490
+          document.title = this.logoTitle
1489 1491
         })
1490 1492
     }
1491 1493
   },