Commit 897b5532 authored by qipeng's avatar qipeng

小程序更新 去除取消按钮

parent 9932426e
......@@ -48,7 +48,8 @@ export default {
updateManager.onUpdateReady(function () {
uni.showModal({
title: '更新检测', // 此处可自定义提示标题
content: '检测到新版本,是否重启小程序?', // 此处可自定义提示消息内容
showCancel:false,
content: '检测到新版本,请点击确认按钮重启小程序?', // 此处可自定义提示消息内容
success: function (res) {
if (res.confirm) {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment