找了很多文章都没有比较靠谱的方案;
现提供有效的解决方案记录一下:
app.vue文件中在首次加载调用个方法检测网络:
setInterval(() => {
uni.getNetworkType({
success: res => {
uni.showToast({
title: ‘无网络’,
icon: ‘none’
});

}
});
}, 2000);
因为并不是真的没有网络导致的白屏所以 在返回网络请求成功中直接调用重载首页的方法即可:
资料引用https://blog.csdn.net/sinat_38652543/article/details/128837135

在app.vue 中写 methods 中,写网络调整方法,onLaunch() 中调用方法

部分主要代码

// #ifdef H5
uni.reLaunch({
url:’/pages/index/index’
})
// #endif
// #ifdef APP-PLUS
plus.runtime.quit()
// #endif