fix: 取消更新后登录页不再自动弹框,等级改为非必填并升至1.1.17

This commit is contained in:
2026-11-01 17:54:32 +08:00
parent 7adec1b960
commit 61bb43f759
6 changed files with 26 additions and 13 deletions
+9 -1
View File
@@ -431,10 +431,18 @@ export default {
return { status: 0 };
}
// 用户已取消过该版本:登录页自动检查不再弹框
const dismissedVersion = uni.getStorageSync('appUpdateDismissedVersion');
if (dismissedVersion && String(dismissedVersion) === String(res.latest_version)) {
console.log('用户已取消该版本更新,跳过自动弹框:', dismissedVersion);
return { status: 0 };
}
return {
changelog: res.message + ',最新版本:' + res.latest_version,
status: res.need_update ? 1 : 0, // 0 无新版本 | 1 有新版本
path: res.download_url // 新apk地址
path: res.download_url, // 新apk地址
latest_version: res.latest_version
};
} catch (error) {
console.log('检查版本更新失败:', error);
+2 -1
View File
@@ -133,7 +133,8 @@ export default {
return {
changelog: res.message + ',最新版本:' + res.latest_version,
status: res.need_update ? 1 : 0,
path: res.download_url
path: res.download_url,
latest_version: res.latest_version
};
}, 1);
// #endif