src/store/onresize.js
@@ -7,10 +7,13 @@ let innerWH = { innerWidth: window.innerWidth, innerHeight: window.innerHeight, // innerWidth: document.documentElement.clientWidth, // innerHeight: document.documentElement.clientHeight, } _this.$store.commit('setWindowSize', innerWH); // console.log(' window.innerWidth', window.innerWidth); // console.log(' window.innerHeight', window.innerHeight); _this.$store.dispatch("changeZoom"); } }