Browse Source

统一标题

liling 3 months ago
parent
commit
4bde27f108
2 changed files with 2 additions and 3 deletions
  1. 1 1
      public/index.html
  2. 1 2
      src/App.vue

+ 1 - 1
public/index.html

@@ -10,7 +10,7 @@
   <link rel="icon" href="<%= BASE_URL %>favicon.ico">
 
   <title>
-    <%= htmlWebpackPlugin.options.title %>
+    真爱苏溪工厂数字孪生
   </title>
   <script src="conf.js"></script>
   <script src="Loading.json.js"></script>

+ 1 - 2
src/App.vue

@@ -9,8 +9,7 @@ import { ref, onMounted } from "vue"
 export default {
   name: 'App',
   setup() {
-    onMounted(() => {
-      document.title = '真爱工厂数字孪生'
+    onMounted(() => {      
       // 创建一个 link 元素
       const link = document.createElement('link');
       link.rel = 'icon';