feat: 兼容处理

This commit is contained in:
2026-05-10 13:01:55 +08:00
parent bbca2d14c9
commit 85a61d5bbf
4 changed files with 26 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
export const updateManager = () => {
// #ifdef MP-WEIXIN || MP-TOUTIAO
const updateManager = uni.getUpdateManager();
// 当向小程序后台请求完新版本信息,会进行回调
@@ -22,4 +23,5 @@ export const updateManager = () => {
// 当新版本下载失败,会进行回调
updateManager.onUpdateFailed(() => {});
// #endif
};