傅行帆 6 years ago
parent
commit
2d6f9be1a1

+ 6
- 0
VUECODE/smart-operate-manage/src/views/index/index.vue View File

49
       // ]
49
       // ]
50
     }
50
     }
51
   },
51
   },
52
+  beforeCreate () {
53
+    document.querySelector('body').setAttribute('style', 'background:#16191c')
54
+  },
55
+  beforeDestroy () {
56
+    document.querySelector('body').setAttribute('style', '')
57
+  },
52
   computed: {
58
   computed: {
53
     ...mapState('trunkIndex', {
59
     ...mapState('trunkIndex', {
54
       hardData: item => item.trunkIndex.hardData
60
       hardData: item => item.trunkIndex.hardData

+ 6
- 0
VUECODE/smart-property-manage/src/views/index/index.vue View File

45
     BarChart,
45
     BarChart,
46
     chart9
46
     chart9
47
   },
47
   },
48
+  beforeCreate () {
49
+    document.querySelector('body').setAttribute('style', 'background:#16191c')
50
+  },
51
+  beforeDestroy () {
52
+    document.querySelector('body').setAttribute('style', '')
53
+  },
48
   computed: {
54
   computed: {
49
     ...mapState("trunkIndex", {
55
     ...mapState("trunkIndex", {
50
       IndexInfo: item => item.trunkIndex.IndexInfo
56
       IndexInfo: item => item.trunkIndex.IndexInfo