state: {
windowHeight:window.location.hash.indexOf('MetaName')!=-1?window.innerHeight:window.innerHeight +115,
},
mutations: {
[types.WINDOWHEIGHT]: (state, data) => {
state.windowHeight = data;
},
}
mounted: function() {
const that = this;
window.onresize = () => {
return (() => {
if(that.$route.query.MetaName){
window.screenHeight = window.innerHeight;
that.screenHeight = window.screenHeight;
}else{
window.screenHeight = window.innerHeight+70;
that.screenHeight = window.screenHeight;
}
})();
};
},
vue自适应
最新推荐文章于 2024-05-22 13:52:22 发布