uni-app
uni-app copied to clipboard
HBuilderX 更新到4.14.2024042905-alpha之后,uni.navigateTo 报错
调用uni.navigateTo 之后会报
一个警告
Unhandled error during execution of mounted hook
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
一个错误
Cannot read properties of null (reading '$el')
at initElement (uni-h5.es.js:25546:45)
报错最后指到了uni-h5.es.js
function initElement() {
refreshContainerElem = refreshRef.value.$el; <--
refreshControllerElem = refreshContainerElem.querySelector(".uni-page-refresh");
refreshControllerElemStyle = refreshControllerElem.style;
refreshInnerElemStyle = refreshControllerElem.querySelector(
".uni-page-refresh-inner"
).style;
}
转到正式版,或者等待 alpha 版更新