fix(仪表板): 修复悬浮组件移入tab组件可能导致浏览器卡顿问题

This commit is contained in:
Wangjiahao 2023-05-25 13:22:55 +08:00
parent 483f477fbe
commit b2fc30bed3
2 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@ export const areaMapping = () => {
return request({
url: '/api/map/globalEntitys/0',
method: 'get',
loading: true
loading: false
})
}
@ -12,7 +12,7 @@ export const globalMapping = () => {
return request({
url: '/api/map/globalEntitys/0',
method: 'get',
loading: true
loading: false
})
}
@ -21,7 +21,7 @@ export function geoJson(areaCode) {
return request({
url: '/geo/full/' + countryCode + '/' + areaCode + '_full.json',
method: 'get',
loading: true
loading: false
})
}

View File

@ -1544,8 +1544,6 @@ export default {
} else {
this.element.style.left = 0
this.element.style.top = 0
this.element.style.width = this.element.style.width * this.curCanvasScaleSelf.matrixStyleWidth / targetCanvasScale.matrixStyleWidth
this.element.style.height = this.element.style.height * this.curCanvasScaleSelf.matrixStyleHeight / targetCanvasScale.matrixStyleHeight
}
this.element.canvasId = targetCanvasId
}