feat : 默认经纬度替换,bugfix,添加一体机样式
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user