UpdateManager.onUpdateFailed
示例
代码示例
- 在 swan 文件中
- 在 js 文件中
data: { },
onLoad() {
const updateManager = swan.getUpdateManager();
updateManager.onUpdateFailed(function (res) {
console.log("res", res);
swan.showModal({
title: '更新提示',
});
}
});
本文档使用 全库网 构建