This commit is contained in:
wtq
2026-03-17 17:43:31 +08:00
parent 6e1c4d46df
commit eb17b6ca95
14 changed files with 159 additions and 42 deletions

View File

@@ -31,16 +31,16 @@ onLaunch(() => {
listenMsg() // 监听消息穿透
uni['globalAlert'] = globalAlert // 挂载全局可覆盖tabar弹窗
plus.device.setWakelock(true) //打开程序后一直保持唤醒状态(常亮)
watchVersion((isUpdate: boolean) => {
// 检查是否更新版本
if (isUpdate) {
uni.globalAlert({
data: {
type: 3,
},
})
}
})
// watchVersion((isUpdate: boolean) => {
// // 检查是否更新版本
// if (isUpdate) {
// uni.globalAlert({
// data: {
// type: 3,
// },
// })
// }
// })
// 初始化平台
if (!getStorage('terrace')) setStorage('terrace', 'jxcs')