vue
mounted(){
window.onresize = () => {
// 执行重新刷新布局的操作
this.$router.go() // 重新页面加载
}
}
html
window.addEventListener('resize', function() {
location.reload(); // 重载页面
});
vue
mounted(){
window.onresize = () => {
// 执行重新刷新布局的操作
this.$router.go() // 重新页面加载
}
}
html
window.addEventListener('resize', function() {
location.reload(); // 重载页面
});