@@ -23,7 +23,7 @@
- `userinfo` 个人中心页面
- `pages:` 此路径下存放的为小程序的页面文件(每个页面对应一个文件夹)。
-## 服务端 serviceApi
+## 服务端 serviceApi
@@ -6,6 +6,8 @@ App({
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
+
if (res.hasUpdate) {
updateManager.onUpdateReady(function () {
wx.showModal({