seimin vor 1 Jahr
Ursprung
Commit
f2f3dc287e
2 geänderte Dateien mit 12 neuen und 2 gelöschten Zeilen
  1. 1 1
      index.html
  2. 11 1
      src/views/Login.vue

+ 1 - 1
index.html

@@ -11,7 +11,7 @@
11 11
     />
12 12
     <!-- <meta name="viewport" content="width=device-width,intial-scale=1,user-
13 13
         scalable=no"> -->
14
-    <title>运维管理平台</title>
14
+    <title></title>
15 15
     <style>
16 16
       html {
17 17
         background-color: white;

+ 11 - 1
src/views/Login.vue

@@ -5,7 +5,7 @@
5 5
       v-if="requesterLgoinType == 'web'"
6 6
       style="font-size: 0.36rem; margin-bottom: 0.36rem; font-weight: 700"
7 7
     >
8
-      运维管理平台
8
+      {{ logoTitle }}
9 9
     </h2>
10 10
     <div v-if="requesterLgoinType == 'web'" style="width: 5rem">
11 11
       <cube-input
@@ -39,6 +39,7 @@ import LoadIng from "./../views/loading.vue";
39 39
 export default {
40 40
   data() {
41 41
     return {
42
+      logoTitle: '',
42 43
       zhanghao: "",
43 44
       mima: "",
44 45
       requesterLgoinType: "",
@@ -49,6 +50,14 @@ export default {
49 50
     LoadIng
50 51
   },
51 52
   methods: {
53
+    getSysNameAndLogo(){
54
+      this.$http.get("service/auth/getSysNameAndLogo", {})
55
+        .then((result) => {
56
+          result = result.data;
57
+          this.logoTitle = result.sysName || '';
58
+          document.title = this.logoTitle
59
+        })
60
+    },
52 61
     // 登陆
53 62
     login() {
54 63
       var that = this;
@@ -335,6 +344,7 @@ export default {
335 344
       this.zlogin();
336 345
     }
337 346
     this.getLoginType();
347
+    this.getSysNameAndLogo();
338 348
   }
339 349
 };
340 350
 </script>