|
|
@@ -1,5 +1,8 @@
|
|
|
const updateManager = wx.getUpdateManager();
|
|
|
+const env = wx.getAccountInfoSync().miniProgram.envVersion;
|
|
|
export function appUpdate(force = false) {
|
|
|
+ if (env !== wx.getStorageSync('env')) wx.clearStorageSync();
|
|
|
+ wx.setStorageSync('env', env);
|
|
|
updateManager.onUpdateReady(function () {
|
|
|
wx.showModal({
|
|
|
title: '更新提示',
|