您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
git init
git add .
git commit -m "feat(home): 新增首页轮播组件"
git tag -a v1.2.3 -m "Release v1.2.3"
git push origin main --tags
在微信开发者工具中,可通过「版本管理」面板完成初始化、配置用户名与邮箱、添加远程、推送与拉取等协作操作。// app.js
App({
onLaunch() {
if (wx.canIUse('getUpdateManager')) {
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(res => {
if (res.hasUpdate) {
updateManager.onUpdateReady(() => {
wx.showModal({
title: '更新提示',
content: '新版本已准备好,是否立即重启以使用?',
success: res => res.confirm && updateManager.applyUpdate()
})
})
updateManager.onUpdateFailed(() => {
wx.showToast({ title: '更新下载失败', icon: 'none' })
})
}
})
}
}
})
同时,在 app.js 中维护 应用内版本号与描述,便于问题定位与客服沟通:App({
version: '1.2.3',
versionDescription: '修复登录态异常与若干样式问题',
onLaunch() {
console.log('App Version:', this.version, this.versionDescription)
}
})
上述做法配合平台的 审核—灰度—全量 机制,可显著降低线上故障影响面。免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。