diff --git a/manifest.json b/manifest.json index ca7fbba..0271a7f 100644 --- a/manifest.json +++ b/manifest.json @@ -12,8 +12,8 @@ "src" : "图片路径" } ], - "versionName" : "1.0.20", - "versionCode" : 1020, + "versionName" : "1.0.21", + "versionCode" : 1021, "app-plus" : { "nvueCompiler" : "weex", "compatible" : { diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue index a1dca76..382448e 100644 --- a/pages/peanut/home.vue +++ b/pages/peanut/home.vue @@ -309,6 +309,9 @@ import musicPlay from '@/components/music.vue' import repciptData from '@/static/json/repcipt.json' import $http from '@/config/requestConfig.js'; + // #ifdef APP-PLUS + import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update"; + // #endif import { mapState, mapMutations @@ -375,7 +378,8 @@ uni.hideTabBar(); // #ifdef APP-PLUS // plus.screen.unlockOrientation(); - plus.screen.lockOrientation("portrait-primary"); + plus.screen.lockOrientation("portrait-primary"); + updata(); // 检查更新 // #endif this.requestAll() this.classList = await this.getClassNoUser()