在 App.vue
页面
加入
/* #ifdef H5*/
uni-page-head {
display: none; }
/* #endif */
uni-page-head[uni-page-head-type=default]~uni-page-wrapper{
height: 100vh;
}
在 pages.json
"globalStyle": {
"app-plus": {
"titleNVie": false
},
"h5": {
"titleNVie": false
}
}