seimin 1 vuosi sitten
vanhempi
commit
f2f3dc287e
2 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 1 1
      index.html
  2. 11 1
      src/views/Login.vue

+ 1 - 1
index.html

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

+ 11 - 1
src/views/Login.vue

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