更改自动更新
This commit is contained in:
parent
6c63f59aad
commit
9e88486e65
@ -16,6 +16,9 @@
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
"compatible" : {
|
||||
"ignoreVersion" : true
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules" : {},
|
||||
/* 应用发布信息 */
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user