修改获取用户定位
This commit is contained in:
+6
-1
@@ -259,7 +259,12 @@ export const WechatLocation = {
|
|||||||
},
|
},
|
||||||
fail: (error) => {
|
fail: (error) => {
|
||||||
console.log('error',error)
|
console.log('error',error)
|
||||||
// reject(error);
|
resolve(null);
|
||||||
|
},
|
||||||
|
complete(res) {
|
||||||
|
if(res.errMsg){
|
||||||
|
resolve(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user