我使用的方式是用js来设置
代码:
export default{
beforeCreate: function() {
document.getElementsByTagName("body")[0].setAttribute("style","background-color:white");
},
data(){
return{
msg:'hello vue'
}
}
}
我使用的方式是用js来设置
代码:
export default{
beforeCreate: function() {
document.getElementsByTagName("body")[0].setAttribute("style","background-color:white");
},
data(){
return{
msg:'hello vue'
}
}
}