diff --git a/App.vue b/App.vue index d7791b4a781a7c109f029a2528300378a4485649..37a156a6a8a3d560bc0a1a2125bc7fd100f8b28b 100644 --- a/App.vue +++ b/App.vue @@ -2,23 +2,13 @@ export default { onLaunch: function() { console.log('App Launch') - let version = uni.getSystemInfoSync().uniRuntimeVersion - function toNum(a){ - const c = a.toString().split('.'); - const num_place = ["", "0", "00", "000", "0000"], - r = num_place.reverse(); - for (let i = 0; i < c.length; i++){ - const len=c[i].length; - c[i]=r[len]+c[i]; - } - return c.join(''); - } - if(toNum(version) < toNum("3.8.0")){ + + if(typeof(uniCloud.SSEChannel) == 'undefined' ){ uni.showModal({ - content: '本示例的HBuilderX版本不得低于3.8.0,请升级', + content: '本项目,仅支持HBuilderX 正式版 v3.7.10 或 alpha v3.8.0及以上版本请升级', showCancel: false }); - } + } }, onShow: function() { console.log('App Show')