@@ -24,8 +24,9 @@
</router-link>
</div>
- <h3>活动作品数统计</h3>
- <div id="myChart" :style="{width: '100%', height: '600px'}">
+ <div class="active-chart" :style="{width: '100%', height: '600px'}">
+ <h3>活动作品数统计</h3>
+ <div id="myChart" style="width: 100%;height: 600px"></div>
</template>
@@ -371,6 +372,11 @@
}
],
})
+
+ //适应屏幕变化
+ window.addEventListener("resize", () => {
+ myChart.resize()
+ });
},
init() {