From 277d6652893fcc10fb6827b62ef16fe2910a525c Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期五, 15 十二月 2023 16:58:25 +0800 Subject: [PATCH] 强制更新功能 --- App.vue | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/App.vue b/App.vue index 290aca9..2216b6d 100644 --- a/App.vue +++ b/App.vue @@ -3,6 +3,13 @@ var jpushModule = uni.requireNativePlugin("JG-JPush") export default { onLaunch: function() { + //#ifdef APP-PLUS + plus.runtime.getProperty(plus.runtime.appid, wgtinfo => { + uni.setStorageSync('version', wgtinfo.version) + console.log("version",wgtinfo.version) + }) + //#endif + console.log('App Launch',jpushModule) jpushModule.initJPushService(); jpushModule.setLoggerEnable(true); @@ -124,6 +131,7 @@ // 设置整个项目的背景色 page { background-color: #f5f5f5; + height: 100%; } /* #endif */ -- Gitblit v1.9.2