mounted(){
window.onresize = function () { //监听屏幕的改变
setTimeout(function () {
that.refresh();
}, 10)
};
}
methods: {
refresh() {
let devicewidth = document.documentElement.clientWidth;
console.log(devicewidth);
// if (devicewidth > 1400) {
// this.widthShow = false;
// } else {
// this.widthShow = true;
// }
},
}