This commit is contained in:
xiaozhiyong
2023-04-12 11:14:01 +08:00
parent 1eab02047e
commit 1cdcd53d8a

View File

@@ -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({