更新
This commit is contained in:
@@ -27,6 +27,7 @@ const instance = defineStore('user', {
|
|||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
getPosition() {
|
getPosition() {
|
||||||
|
if (this.position.latitude && this.position.longitude) return
|
||||||
initAMap().then(() => {
|
initAMap().then(() => {
|
||||||
let AMap = Vue.prototype.$AMap
|
let AMap = Vue.prototype.$AMap
|
||||||
let geolocation = new AMap.Geolocation({
|
let geolocation = new AMap.Geolocation({
|
||||||
|
|||||||
Reference in New Issue
Block a user