提交 81c43797 编写于 作者: 张敬贤's avatar 张敬贤

Feature/zjx

上级 9364c98c
...@@ -92,7 +92,8 @@ export default { ...@@ -92,7 +92,8 @@ export default {
geolocation.getCurrentPosition((status, result) => { geolocation.getCurrentPosition((status, result) => {
console.log('geolocationgeolocation,', status, result); console.log('geolocationgeolocation,', status, result);
if (result.position) { if (result.position) {
storejs.set('geolocation', result.position); const position = { ...result.position, addr: result.formattedAddress };
storejs.set('geolocation', position);
} }
that.getJumpPageStatus(); that.getJumpPageStatus();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册