fix(top): fix

This commit is contained in:
2026-03-19 18:03:41 +08:00
parent a6c83ef3f6
commit de91f1c9d8
4 changed files with 233 additions and 141 deletions

View File

@@ -2866,9 +2866,8 @@ export const usePaperStore = create<PaperState>((set) => ({
useTopToolsStore.getState().activeOperation
)
let label_class = category?.label_class || ""
let subAttr = Object.assign(
{},
useTopToolsStore.getState().subAttributes[label_class]
let subAttr = safeClone(
useTopToolsStore.getState().subAttributes[label_class] || {}
)
// 镂空或分割的多边形存值
@@ -3352,9 +3351,8 @@ export const usePaperStore = create<PaperState>((set) => ({
useTopToolsStore.getState().activeOperation
)
let label_class = category?.label_class || ""
let subAttr = Object.assign(
{},
useTopToolsStore.getState().subAttributes[label_class]
let subAttr = safeClone(
useTopToolsStore.getState().subAttributes[label_class] || {}
)
useLabelStore
.getState()
@@ -3623,9 +3621,8 @@ export const usePaperStore = create<PaperState>((set) => ({
useTopToolsStore.getState().activeOperation
)
let label_class = category?.label_class || ""
let subAttr = Object.assign(
{},
useTopToolsStore.getState().subAttributes[label_class]
let subAttr = safeClone(
useTopToolsStore.getState().subAttributes[label_class] || {}
)
// 多线段存值
@@ -3998,9 +3995,8 @@ export const usePaperStore = create<PaperState>((set) => ({
useTopToolsStore.getState().activeOperation
)
let label_class = category?.label_class || ""
let subAttr = Object.assign(
{},
useTopToolsStore.getState().subAttributes[label_class]
let subAttr = safeClone(
useTopToolsStore.getState().subAttributes[label_class] || {}
)
// 存值