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]: ''