fix:修改切换地图类型调接口

This commit is contained in:
SunTao 2024-11-07 12:51:04 +08:00
parent 5f4fae2c0e
commit 6c5fb49342
2 changed files with 7 additions and 3 deletions

View File

@ -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) || [];

View File

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