傅行帆 6 anni fa
parent
commit
2d6f9be1a1

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

@@ -49,6 +49,12 @@ export default {
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 58
   computed: {
53 59
     ...mapState('trunkIndex', {
54 60
       hardData: item => item.trunkIndex.hardData

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

@@ -45,6 +45,12 @@ export default {
45 45
     BarChart,
46 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 54
   computed: {
49 55
     ...mapState("trunkIndex", {
50 56
       IndexInfo: item => item.trunkIndex.IndexInfo