feat : useLocationStore 定义经纬度时就给默认,有时还在定位中,地图功能无法使用

This commit is contained in:
2025-12-22 14:40:59 +08:00
parent 5d0b9c5a3a
commit 73a6692998

View File

@@ -16,8 +16,8 @@ const defalutLongLat = {
const useLocationStore = defineStore("location", () => {
// 定义状态
const longitudeVal = ref(null) // 经度
const latitudeVal = ref(null) //纬度
const longitudeVal = ref(120.366085) // 经度
const latitudeVal = ref(36.086656) //纬度
const timer = ref(null)
const count = ref(0)