feat : 默认经纬度替换,bugfix,添加一体机样式

This commit is contained in:
2025-12-22 14:19:10 +08:00
parent 577ec92ac8
commit 8dea3294a5
12 changed files with 50 additions and 22 deletions

View File

@@ -10,8 +10,8 @@ import {
import config from '../config';
const defalutLongLat = {
longitude: 120.382665,
latitude: 36.066938,
longitude: 120.366085,
latitude: 36.086656,
}
const useLocationStore = defineStore("location", () => {
@@ -53,7 +53,7 @@ const useLocationStore = defineStore("location", () => {
fail: function(data) {
longitudeVal.value = defalutLongLat.longitude
latitudeVal.value = defalutLongLat.latitude
resole(defalutLongLat)
reject()
msg('用户位置获取失败')
console.log('失败2', data)
}
@@ -62,7 +62,7 @@ const useLocationStore = defineStore("location", () => {
} catch (e) {
longitudeVal.value = defalutLongLat.longitude
latitudeVal.value = defalutLongLat.latitude
resole(defalutLongLat)
reject()
msg('测试环境,使用模拟定位')
console.log('失败1', e)
}