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