diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 0c6add7..325e86e 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -9,7 +9,12 @@ "Bash(curl -sI \"https://webapi.amap.com/maps?v=1.4.15&key=3239bc04f77a5c89b2b5e628da96b6ed\")", "Bash(npm run *)", "Read(//Users/wangbiao/.claude/**)", - "Read(//Users/wangbiao/.claude/plugins/**)" + "Read(//Users/wangbiao/.claude/plugins/**)", + "Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3000)", + "Bash(curl -s \"https://spms.xrparking.cn/app/inspectionPlan.listInspectionPlans\" -H \"Content-Type: application/json\")", + "Bash(python3 -m json.tool)", + "Bash(open *)", + "Bash(sips -z 800 1200 /Users/wangbiao/Downloads/qqqqqq.png --out /tmp/qqqqqq_small.png)" ] } } diff --git a/src/components/system/ViewMap.vue b/src/components/system/ViewMap.vue index 4ee2d7d..5bc0cd0 100644 --- a/src/components/system/ViewMap.vue +++ b/src/components/system/ViewMap.vue @@ -61,12 +61,15 @@ export default { }) }) }, - closeMap() { - this.viewMapInfo.showMap = false + closeMap(done) { if (this.viewMapInfo.map) { this.viewMapInfo.map.destroy() this.viewMapInfo.map = null } + this.viewMapInfo.showMap = false + if (typeof done === 'function') { + done() + } }, wgs84togcj02(lng, lat) { return { lon: lng, lat } diff --git a/vue.config.js b/vue.config.js index a6ead80..8cd4dae 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,34 +9,34 @@ module.exports = { port: 3000, // 设置开发服务器端口 open: true, // 自动打开浏览器 proxy: { - // '/app': { - // target: 'https://demo.homecommunity.cn/app', // 后端API地址 - // changeOrigin: true, - // pathRewrite: { - // '^/app': '' - // } - // }, - // '/callComponent': { - // target: 'https://demo.homecommunity.cn/callComponent', // 后端API地址 - // changeOrigin: true, - // pathRewrite: { - // '^/callComponent': '' - // } - // } '/app': { - target: 'http://localhost:8008/app', // 后端API地址 + target: 'https://spms.xrparking.cn/app', // 后端API地址 changeOrigin: true, pathRewrite: { '^/app': '' } }, '/callComponent': { - target: 'http://localhost:8008/callComponent', // 后端API地址 + target: 'hhttps://spms.xrparking.cn/callComponent', // 后端API地址 changeOrigin: true, pathRewrite: { '^/callComponent': '' } } + // '/app': { + // target: 'http://localhost:8008/app', // 后端API地址 + // changeOrigin: true, + // pathRewrite: { + // '^/app': '' + // } + // }, + // '/callComponent': { + // target: 'http://localhost:8008/callComponent', // 后端API地址 + // changeOrigin: true, + // pathRewrite: { + // '^/callComponent': '' + // } + // } }, // 关键:禁止开发服务器对静态资源添加 hash historyApiFallback: {