From 3956fc0f9ab93e2efd533a283f2f49cb9e171d96 Mon Sep 17 00:00:00 2001 From: mo-bai <1873032855@qq.com> Date: Tue, 19 Apr 2022 20:16:47 +0800 Subject: [PATCH] update --- App.vue | 7 ++++++- env/index.js | 4 ++-- manifest.json | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index 71b2da0..c068cd7 100644 --- a/App.vue +++ b/App.vue @@ -27,7 +27,12 @@ export default { return } let curVersion = plus.runtime.version - if (version != curVersion) { + if (!version) { + version = curVersion + } + let curVersionNum = curVersion.split('.').join('') - 0 || 100 + let versionNum = version.split('.').join('') - 0 || 100 + if (curVersionNum < versionNum) { let client = uni.getSystemInfoSync().platform if (client === 'ios') { uni.showModal({ diff --git a/env/index.js b/env/index.js index a0bfcb1..bcf6a22 100644 --- a/env/index.js +++ b/env/index.js @@ -1,8 +1,8 @@ /** * @description 唯一环境变量 */ -const env = 'test' +// const env = 'test' // const env = 'dev' -// const env = 'production' +const env = 'production' export default env diff --git a/manifest.json b/manifest.json index bb53463..a0b7579 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "印包客", "appid" : "__UNI__EBBA73E", "description" : "", - "versionName" : "1.0.0", - "versionCode" : 101, + "versionName" : "1.0.1", + "versionCode" : 100, "transformPx" : false, "networkTimeout" : { "request" : 6000