取消小程序内的弹窗更新
This commit is contained in:
parent
e156e46286
commit
cacb0063bd
@ -2,8 +2,8 @@
|
|||||||
"name" : "里海社区",
|
"name" : "里海社区",
|
||||||
"appid" : "__UNI__B5B1EDD",
|
"appid" : "__UNI__B5B1EDD",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.2",
|
"versionName" : "1.1.3",
|
||||||
"versionCode" : 112,
|
"versionCode" : 113,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -48,6 +48,7 @@ const actions = {
|
|||||||
let res = await getConfig();
|
let res = await getConfig();
|
||||||
commit('SET_CONFIG', res.data);
|
commit('SET_CONFIG', res.data);
|
||||||
// console.log(compareVersions(res.data.version, '1.0.0')==1&&compareVersions(res.data.version, Cache.get('wgt_version'))==1);
|
// 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();
|
let os = uni.getSystemInfoSync();
|
||||||
// uni.showModal({
|
// uni.showModal({
|
||||||
// title: `当前:${os.appVersion},WGT:${Cache.get('wgt_version')},返回:${res.data.version}`
|
// title: `当前:${os.appVersion},WGT:${Cache.get('wgt_version')},返回:${res.data.version}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user