fix: 修复前后两个值反了的时候绘制方框出现的问题

This commit is contained in:
Xu Zhimeng 2024-08-22 15:53:42 +08:00
parent 5c8f3f1671
commit 80b77a2eb7

View File

@ -294,7 +294,12 @@ export default {
this.initChart() this.initChart()
}, },
/**
* 设置方框范围
* @param {number[][]} boundary
*/
setBoundaryList(boundary) { setBoundaryList(boundary) {
boundary.forEach((item) => item.sort((a, b) => a - b))
this.boundary = boundary this.boundary = boundary
this.reDrawRect() this.reDrawRect()
}, },