From d76b8b664e855578a30cd9b63b38e69a1e30d06f Mon Sep 17 00:00:00 2001 From: francis_fh <13935151924@163.com> Date: Fri, 5 Dec 2025 11:26:05 +0800 Subject: [PATCH] 1 --- config.js | 2 +- stores/useLocationStore.js | 8 +-- .../dist/dev/mp-weixin/project.config.json | 69 +++++++++---------- 3 files changed, 37 insertions(+), 42 deletions(-) diff --git a/config.js b/config.js index 4bdfd0c..b478506 100644 --- a/config.js +++ b/config.js @@ -25,7 +25,7 @@ export default { // 只使用本地缓寸的数据 OnlyUseCachedDB: true, // 使用模拟定位 - UsingSimulatedPositioning: true, + UsingSimulatedPositioning: false, // 应用信息 appInfo: { // 应用名称 diff --git a/stores/useLocationStore.js b/stores/useLocationStore.js index fc0c453..c8fd9fe 100644 --- a/stores/useLocationStore.js +++ b/stores/useLocationStore.js @@ -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 diff --git a/unpackage/dist/dev/mp-weixin/project.config.json b/unpackage/dist/dev/mp-weixin/project.config.json index 78517a9..013e402 100644 --- a/unpackage/dist/dev/mp-weixin/project.config.json +++ b/unpackage/dist/dev/mp-weixin/project.config.json @@ -1,40 +1,35 @@ { - "setting": { - "es6": true, - "postcss": true, - "minified": true, - "uglifyFileName": false, - "enhance": true, - "packNpmRelationList": [], - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useCompilerPlugins": false, - "minifyWXML": true, - "compileWorklet": false, - "uploadWithSourceMap": true, - "packNpmManually": false, - "minifyWXSS": true, - "localPlugins": false, - "disableUseStrict": false, - "condition": false, - "swc": false, - "disableSWC": true, - "ignoreUploadUnusedFiles": false + "setting": { + "es6": true, + "postcss": true, + "minified": true, + "uglifyFileName": false, + "enhance": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" }, - "compileType": "miniprogram", - "simulatorPluginLibVersion": {}, - "packOptions": { - "ignore": [], - "include": [] - }, - "appid": "wx4aa34488b965a331", - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 4 - }, - "libVersion": "3.11.1", - "condition": {} + "useCompilerPlugins": false, + "minifyWXML": true, + "compileWorklet": false, + "uploadWithSourceMap": true, + "packNpmManually": false, + "minifyWXSS": true, + "localPlugins": false, + "disableUseStrict": false, + "condition": false, + "swc": false, + "disableSWC": true + }, + "compileType": "miniprogram", + "simulatorPluginLibVersion": {}, + "packOptions": { + "ignore": [], + "include": [] + }, + "appid": "wx4aa34488b965a331", + "editorSetting": {}, + "libVersion": "3.11.1" } \ No newline at end of file