This commit is contained in:
francis_fh
2025-12-05 11:26:05 +08:00
parent 2268e4fad5
commit d76b8b664e
3 changed files with 37 additions and 42 deletions

View File

@@ -25,7 +25,7 @@ export default {
// 只使用本地缓寸的数据
OnlyUseCachedDB: true,
// 使用模拟定位
UsingSimulatedPositioning: true,
UsingSimulatedPositioning: false,
// 应用信息
appInfo: {
// 应用名称

View File

@@ -24,8 +24,8 @@ const useLocationStore = defineStore("location", () => {
timeout: 10000,
success: function(res) {
const resd = {
longitude: 120.382665,
latitude: 36.066938
longitude: 75.993802,
latitude: 39.468225
}
if (config.UsingSimulatedPositioning) { // 使用模拟定位
longitudeVal.value = resd.longitude
@@ -44,8 +44,8 @@ const useLocationStore = defineStore("location", () => {
// latitudeVal.value = ''
// reject(err)
const resd = {
longitude: 120.382665,
latitude: 36.066938
longitude: 75.993802,
latitude: 39.468225
}
longitudeVal.value = resd.longitude
latitudeVal.value = resd.latitude

View File

@@ -21,8 +21,7 @@
"disableUseStrict": false,
"condition": false,
"swc": false,
"disableSWC": true,
"ignoreUploadUnusedFiles": false
"disableSWC": true
},
"compileType": "miniprogram",
"simulatorPluginLibVersion": {},
@@ -31,10 +30,6 @@
"include": []
},
"appid": "wx4aa34488b965a331",
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 4
},
"libVersion": "3.11.1",
"condition": {}
"editorSetting": {},
"libVersion": "3.11.1"
}