1.vue
mounted() {
document
.querySelector("body")
.setAttribute("style", "background-color:#ffffff");
},
beforeDestroy() {
document.querySelector("body").removeAttribute("style");
},
2.uniapp
// 设置的page只会对当前路径页面有用,对其它路径页面不产生影响
page {
background: #FBFBFB;
}