fix(label): data bug

This commit is contained in:
2026-03-19 20:02:23 +08:00
parent de91f1c9d8
commit bfd5a550af
3 changed files with 167 additions and 38 deletions

View File

@@ -1,3 +1,4 @@
import { useCallback } from "react"
import paper from "paper"
import { useLabelStore } from "./store"
import { useBottomToolsStore } from "./useBottomToolsStore"
@@ -14,7 +15,7 @@ export const removeTagTexts = (id?: number) => {
}
const useRenderTag = () => {
const renderTag = () => {
const renderTag = useCallback(() => {
const dataMap = useLabelStore.getState().label
const activeImage = useBottomToolsStore.getState().activeImage
const group = usePaperStore.getState().group
@@ -155,7 +156,7 @@ const useRenderTag = () => {
}
}
}
}
}, [])
return {
renderTag,