首页检测版本

This commit is contained in:
@fawn-nine
2024-09-29 16:35:21 +08:00
parent 49173572e7
commit e36d3962aa
2 changed files with 7 additions and 3 deletions

View File

@@ -12,8 +12,8 @@
"src" : "图片路径" "src" : "图片路径"
} }
], ],
"versionName" : "1.0.20", "versionName" : "1.0.21",
"versionCode" : 1020, "versionCode" : 1021,
"app-plus" : { "app-plus" : {
"nvueCompiler" : "weex", "nvueCompiler" : "weex",
"compatible" : { "compatible" : {

View File

@@ -309,6 +309,9 @@
import musicPlay from '@/components/music.vue' import musicPlay from '@/components/music.vue'
import repciptData from '@/static/json/repcipt.json' import repciptData from '@/static/json/repcipt.json'
import $http from '@/config/requestConfig.js'; import $http from '@/config/requestConfig.js';
// #ifdef APP-PLUS
import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
// #endif
import { import {
mapState, mapState,
mapMutations mapMutations
@@ -375,7 +378,8 @@
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS // #ifdef APP-PLUS
// plus.screen.unlockOrientation(); // plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary"); plus.screen.lockOrientation("portrait-primary");
updata(); // 检查更新
// #endif // #endif
this.requestAll() this.requestAll()
this.classList = await this.getClassNoUser() this.classList = await this.getClassNoUser()