diff --git a/frontend/src/components/deDrag/index.vue b/frontend/src/components/deDrag/index.vue
index 0c435cd329..032794c410 100644
--- a/frontend/src/components/deDrag/index.vue
+++ b/frontend/src/components/deDrag/index.vue
@@ -65,7 +65,7 @@
@mousedown.stop.prevent="handleDown(handlei, $event)"
@touchstart.stop.prevent="handleTouchDown(handlei, $event)"
>
-
+
-
+
@@ -588,7 +588,7 @@ export default {
return 'auto'
}
}
- if (this.element.auxiliaryMatrix) {
+ if (this.element.auxiliaryMatrix && this.curCanvasScaleSelf) {
const width = Math.round(this.width / this.curCanvasScaleSelf.matrixStyleWidth) * this.curCanvasScaleSelf.matrixStyleWidth
return (width - this.curGap * 2) + 'px'
} else {
diff --git a/frontend/src/views/chart/components/ChartComponentG2.vue b/frontend/src/views/chart/components/ChartComponentG2.vue
index 8a0c54f0f0..8633394a71 100644
--- a/frontend/src/views/chart/components/ChartComponentG2.vue
+++ b/frontend/src/views/chart/components/ChartComponentG2.vue
@@ -202,7 +202,7 @@ export default {
})
},
checkSelected(param) {
- return (this.linkageActiveParam.name.indexOf(param.name) > -1) &&
+ return (this.linkageActiveParam.name === param.name) &&
(this.linkageActiveParam.category === param.category)
},
preDraw() {