diff --git a/src/manifest.json b/src/manifest.json index 05bdce1..bb9f974 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -16,6 +16,9 @@ "autoclose" : true, "delay" : 0 }, + "compatible" : { + "ignoreVersion" : true + }, /* 模块配置 */ "modules" : {}, /* 应用发布信息 */ diff --git a/src/stores/index.js b/src/stores/index.js index 61a560e..4d3c320 100644 --- a/src/stores/index.js +++ b/src/stores/index.js @@ -182,12 +182,13 @@ export const useAppUpdate = defineStore('appUpdate', () => { } return newAppApi().then(({data:res}) => { let appConfig = uni.getSystemInfoSync() - if (String(res.data.version) !== appConfig.appVersion) { + if (String(res.data.version) !== String(appConfig.appWgtVersion)) { callback.value && callback.value() loading.value = true const downloadTask = uni.downloadFile({ - url: res.data.apkUrl, + // url: res.data.apkUrl, // url: 'https://114.132.197.85:26035/down/0JjTqTl4atsE.apk', + url: `${import.meta.env.VITE_APP_BASE_API}/web/downloadApk`, success: res1 => { loading.value = false if (res1.statusCode===200) {