lrf402788946 5 anni fa
parent
commit
ac8650f70e
2 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 1 1
      public/index.html
  2. 7 2
      src/views/index/index.vue

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title>长春工业大学</title>
+    <title>加载中...</title>
   </head>
   <body>
     <noscript>

+ 7 - 2
src/views/index/index.vue

@@ -73,14 +73,17 @@ import pagesOne from '@publics/src/views/index.vue';
 import { masterInfo } from '@/config/master-info';
 import { mapActions, mapState } from 'vuex';
 export default {
+  metaInfo: {
+    title: this.siteTitle,
+  },
   name: 'request',
   props: {},
   components: {
     pagesOne,
     topMenu,
     selfCalendar,
-    selfCalendars,
-    master,
+    // selfCalendars,
+    // master,
   },
   data: () => ({
     user: 'master',
@@ -106,6 +109,7 @@ export default {
     //master数据
     master: { ...masterInfo },
     corpList: [],
+    siteTitle: '',
   }),
   async created() {
     await this.checkUser();
@@ -160,6 +164,7 @@ export default {
           this.getfloating(item);
         }
       }
+      this.$set(this, `siteTitle`, this.site.name);
     },
     getfloating(item) {
       let arr = JSON.parse(item);