部分操作添加无网判断
This commit is contained in:
parent
456f21be75
commit
cd14abc277
@ -80,7 +80,7 @@ export default {
|
|||||||
this.temporaryInvalidTime = this.setTime()
|
this.temporaryInvalidTime = this.setTime()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(useBasicStore, ['getDeviceInfo', 'backAndToast']),
|
...mapActions(useBasicStore, ['getDeviceInfo', 'backAndToast', 'getNetworkType']),
|
||||||
...mapActions(useLockStore, ['getKeyList', 'updateKeySearch']),
|
...mapActions(useLockStore, ['getKeyList', 'updateKeySearch']),
|
||||||
setTime () {
|
setTime () {
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
@ -108,6 +108,11 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const netWork = await this.getNetworkType()
|
||||||
|
if(!netWork) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (this.pending) {
|
if (this.pending) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -156,6 +156,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async changeUnlockApp(value) {
|
async changeUnlockApp(value) {
|
||||||
|
const netWork = await this.getNetworkType()
|
||||||
|
if(!netWork) {
|
||||||
|
return
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '更新中',
|
title: '更新中',
|
||||||
mask: true
|
mask: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user