张延森 преди 3 години
родител
ревизия
11a3259fc7
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3
    2
      src/views/components/OfficeImage.vue

+ 3
- 2
src/views/components/OfficeImage.vue Целия файл

@@ -65,7 +65,7 @@ export default {
65 65
   },
66 66
   created() {},
67 67
   mounted() {
68
-    this.$nextTick(function () {
68
+    this.$nextTick(() => {
69 69
       // 仅在整个视图都被渲染之后才会运行的代码
70 70
       this.divWidth = this.$refs.divWidth.clientWidth / 2
71 71
     })
@@ -92,9 +92,10 @@ export default {
92 92
   align-items: center;
93 93
   box-sizing: border-box;
94 94
   padding: 0 20px;
95
+
95 96
   .flex-box-style {
96
-    justify-content: start;
97 97
     display: flex;
98
+    justify-content: center;
98 99
     flex-wrap: wrap;
99 100
     align-items: center;
100 101
     flex: 3;