mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 08:12:49 +08:00
style: 去除多余代码
This commit is contained in:
parent
99467f87ff
commit
455e387a62
@ -11,7 +11,6 @@ import { useChartHistoryStore } from '@/store/modules/chartHistoryStore/chartHis
|
|||||||
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
||||||
import { HistoryActionTypeEnum, HistoryItemType, HistoryTargetTypeEnum } from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
import { HistoryActionTypeEnum, HistoryItemType, HistoryTargetTypeEnum } from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
||||||
import { MenuEnum } from '@/enums/editPageEnum'
|
import { MenuEnum } from '@/enums/editPageEnum'
|
||||||
import { PreviewScaleEnum } from '@/enums/styleEnum'
|
|
||||||
import {
|
import {
|
||||||
ChartEditStoreEnum,
|
ChartEditStoreEnum,
|
||||||
ChartEditStorage,
|
ChartEditStorage,
|
||||||
@ -367,7 +366,6 @@ export const useChartEditStore = defineStore({
|
|||||||
e = cloneDeep(e)
|
e = cloneDeep(e)
|
||||||
// 生成新 id
|
// 生成新 id
|
||||||
e.id = getUUID()
|
e.id = getUUID()
|
||||||
// 偏移位置
|
|
||||||
e.attr.x = this.getMousePosition.x + 30
|
e.attr.x = this.getMousePosition.x + 30
|
||||||
e.attr.y = this.getMousePosition.y + 30
|
e.attr.y = this.getMousePosition.y + 30
|
||||||
return e
|
return e
|
||||||
|
Loading…
Reference in New Issue
Block a user