feat: 解决wgt更新问题

This commit is contained in:
2025-08-19 22:38:55 +08:00
parent 2e76fec9d6
commit 849b25fa3c
7 changed files with 26 additions and 51 deletions
+1 -1
View File
@@ -305,7 +305,6 @@ export default {
const self = this,
localAppVersonName = uni.getStorageSync('version'),
localAppVerson = uni.getStorageSync('versionCode');
// #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function (widgetInfo) {
const params = {
@@ -313,6 +312,7 @@ export default {
versionCode: localAppVerson,
}
checkAppVersion(params).then(res => {
console.log("wgt更新-1", res)
if (res && res.bizcode === 100) {
const data = res.data || {};
// app大版本更新,versionName:1.0.1 versionCode:102