@@ -474,13 +474,7 @@
productLineList: []
};
},
- created() {
- setTimeout(() => {
- this.$nextTick(() => {
- this.$refs.barRef.resize();
- });
- }, 300);
- },
+ created() {},
watch: {
isFullscreen() {
setTimeout(() => {
@@ -490,6 +484,10 @@
}
mounted() {
+ setTimeout(() => {
+ this.$refs.barRef.resize();
+ this.getMaxHeigth();
+ }, 300);
getFactoryarea({
pageNum: 1,
size: 999,
@@ -502,7 +500,7 @@
this.timer = setInterval(() => {
this.init();
}, 3600000);
- this.getMaxHeigth();
+
window.addEventListener('resize', this.getMaxHeigth);
beforeDestroy() {