优化强制更新功能
This commit is contained in:
@@ -72,6 +72,7 @@ import Engineering from './comp/engineering.vue'
|
||||
import list from '../../common/js/list'
|
||||
import { getDevCount } from '../../common/api/device.js'
|
||||
import { queryEngineering } from '@/common/api/engineering.js'
|
||||
import { checkAppUpdate } from '@/common/js/update.js'
|
||||
|
||||
export default {
|
||||
mixins: [list],
|
||||
@@ -252,6 +253,11 @@ export default {
|
||||
this.showBackTop = e.scrollTop > 200
|
||||
},
|
||||
onLoad() {
|
||||
// #ifdef APP-PLUS
|
||||
checkAppUpdate()
|
||||
// #endif
|
||||
|
||||
|
||||
// 页面加载时,动态配置导航栏按钮
|
||||
if (!uni.getStorageSync(this.$cacheKey.access_token)) {
|
||||
uni.reLaunch({
|
||||
@@ -289,6 +295,8 @@ export default {
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
|
||||
let access_token = uni.getStorageSync(this.$cacheKey.access_token)
|
||||
@@ -319,7 +327,7 @@ export default {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.popup-content {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user