取消小程序内的弹窗更新

This commit is contained in:
weipengfei 2023-09-13 17:47:16 +08:00
parent e156e46286
commit cacb0063bd
2 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,8 @@
"name" : "里海社区",
"appid" : "__UNI__B5B1EDD",
"description" : "",
"versionName" : "1.1.2",
"versionCode" : 112,
"versionName" : "1.1.3",
"versionCode" : 113,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -48,6 +48,7 @@ const actions = {
let res = await getConfig();
commit('SET_CONFIG', res.data);
// console.log(compareVersions(res.data.version, '1.0.0')==1&&compareVersions(res.data.version, Cache.get('wgt_version'))==1);
if(uni.getStorageSync('uniMP')) return ;//是小程序环境时不进行更新
let os = uni.getSystemInfoSync();
// uni.showModal({
// title: `当前:${os.appVersion},WGT:${Cache.get('wgt_version')},返回:${res.data.version}`