APP热更新

This commit is contained in:
cansnow
2026-01-11 13:51:16 +08:00
parent 941464c330
commit c38846f13b
16 changed files with 995 additions and 197 deletions
+2 -13
View File
@@ -29,9 +29,9 @@
import CustomNavBar from "@/components/CustomNavBar/index.vue";
import {PageEvents } from "@/constant";
import InfoItem from "../selfInfo/InfoItem.vue";
import {checkUpgrade} from "@/api/login.js"
import { mapGetters } from "vuex";
import util from "@/util/index.js"
import checkUpgrade from "@/util/app_update.js"
export default {
components: {
CustomNavBar,
@@ -111,18 +111,7 @@
},
// 验证是否升级
checkUpdate() {
this.loading = true;
const _this = this;
checkUpgrade().then(res=>{
_this.loading = false;
}).catch(e=>{
console.log(e);
if(e === true){
uni.showToast({title:'已经是最新版本'})
return ;
}
_this.loading = false;
});
checkUpgrade(true);
},
},
};