feat: 兼容处理
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user