fix: 修改右键问题

This commit is contained in:
mtrun
2022-03-28 17:24:56 +08:00
parent 7002e64b8f
commit f00bd16aaf
3 changed files with 12 additions and 8 deletions
@@ -12,7 +12,7 @@ import { loadingStart, loadingFinish, loadingError } from '@/utils'
import throttle from 'lodash/throttle'
const chartEditStore = useChartEditStore()
const { onClickoutside } = useContextMenu()
const { onClickOutSide } = useContextMenu()
// * 拖拽到编辑区域里
export const handleDrag = async (e: DragEvent) => {
@@ -74,7 +74,7 @@ export const useMouseHandle = () => {
e.preventDefault()
e.stopPropagation()
onClickoutside()
onClickOutSide()
chartEditStore.setTargetSelectChart(item.id)
const scale = chartEditStore.getEditCanvas.scale
const width = chartEditStore.getEditCanvasConfig.width