fix(formdata): 修复H5端导航栏隐藏选择器失效的问题
将原先通过类名选择uni-page-head改为直接选择uni-page-head组件,适配框架组件渲染变化
This commit is contained in:
@@ -83,7 +83,7 @@ export default {
|
||||
// #ifdef H5
|
||||
if (this.isFromMpWebView) {
|
||||
this.$nextTick(() => {
|
||||
const navbar = document.querySelector('.uni-page-head')
|
||||
const navbar = document.querySelector('uni-page-head')
|
||||
if (navbar) navbar.style.display = 'none'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user