flat: 暂存
This commit is contained in:
@@ -9,8 +9,8 @@ import {
|
||||
} from '@/common/globalFunction.js'
|
||||
const useLocationStore = defineStore("location", () => {
|
||||
// 定义状态
|
||||
const longitudeVal = ref('') // 经度
|
||||
const latitudeVal = ref('') //纬度
|
||||
const longitudeVal = ref(null) // 经度
|
||||
const latitudeVal = ref(null) //纬度
|
||||
|
||||
function getLocation() {
|
||||
return new Promise((resole, reject) => {
|
||||
@@ -63,6 +63,9 @@ const useLocationStore = defineStore("location", () => {
|
||||
getLocation,
|
||||
longitude,
|
||||
latitude,
|
||||
longitudeVal,
|
||||
latitudeVal
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user