feat : useLocationStore 定义经纬度时就给默认,有时还在定位中,地图功能无法使用
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user