解决在app中断网没有及时更新首页的问题

This commit is contained in:
lemon橪
2022-06-24 16:59:04 +08:00
committed by 学习很差啦
parent a56ea2d456
commit 17299d00e1
2 changed files with 11 additions and 2 deletions

View File

@@ -58,6 +58,11 @@
uZIndex() {
return this.zIndex ? this.zIndex : this.$u.zIndex.noNetwork;
}
},
watch:{
isConnected(val){
this.$emit('isConnected',val)
}
},
mounted() {
this.isIOS = (uni.getSystemInfoSync().platform === 'ios');