From 6c5fb493420ee83fe03c59d46ac543eafb9666bf Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Thu, 7 Nov 2024 12:51:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=9C=B0=E5=9B=BE=E7=B1=BB=E5=9E=8B=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/big-screen/index.vue | 6 +++++- vue.config.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/big-screen/index.vue b/src/views/big-screen/index.vue index 40744f5..8df76cd 100644 --- a/src/views/big-screen/index.vue +++ b/src/views/big-screen/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-17 11:34:00 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-11-07 12:01:48 + * @LastEditTime: 2024-11-07 12:48:21 * @FilePath: \znxjxt-ui\src\views\big-screen\index.vue * @Description: 大屏首页 --> @@ -517,6 +517,7 @@ export default { this.clusters = null; this.markLayerLines = null; this.mapCenterPoint = {}; + this.roadSelect = ""; } }, @@ -717,6 +718,8 @@ export default { /* 地图下方4图标类别切换点击事件 */ changeIconType(value) { + this.mapZoom = ""; + this.roadSelect = ""; if (this.mapClick !== value) { this.mapClick = value; this.$nextTick(() => { @@ -972,6 +975,7 @@ export default { /* 图片位置信息获取 */ updateScreenRects() { + 1; this.screenRects = []; const image = this.$refs.mainImage; const rects = this.screenImage?.rect?.split(",").map(Number) || []; diff --git a/vue.config.js b/vue.config.js index 6565301..c9058ca 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - // target: `http://192.168.1.188:8080`, - target: `http://localhost:8080`, + target: `http://192.168.1.188:8080`, + // target: `http://localhost:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''