位置授权,请求基地址修改,设备前缀匹配
This commit is contained in:
parent
faba9d5187
commit
5e49c058cd
6
App.vue
6
App.vue
|
|
@ -2,6 +2,12 @@
|
|||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch')
|
||||
uni.authorize({
|
||||
scope: 'scope.userLocation',
|
||||
success: function () {
|
||||
console.log('用户同意了授权')
|
||||
},
|
||||
})
|
||||
},
|
||||
onShow: function () {
|
||||
console.log('App Show')
|
||||
|
|
|
|||
|
|
@ -1255,7 +1255,7 @@ function init() {
|
|||
// && devices.devices[0].name != 'SMART_R2XS'
|
||||
// && devices.devices[0].name != 'SMART_R2XS'
|
||||
// )
|
||||
if (devices.devices[0].name.indexOf('BBLE') != -1) {
|
||||
if (devices.devices[0].name.indexOf('CTKG') != -1) {
|
||||
// if ( devices.devices[0].name.indexOf("gjkg") != -1 ){
|
||||
// console.log("跳过",devices.devices[0].name)
|
||||
// isnotexist = false;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ const ENV_CONFIG = {
|
|||
develop: {
|
||||
// 开发环境
|
||||
// baseUrl: 'http://192.168.2.13:4601',
|
||||
baseUrl: 'http://192.168.2.13:4601',
|
||||
baseUrl: 'https://chu.chuangtewl.com/prod-api',
|
||||
appId: 1,
|
||||
},
|
||||
trial: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user