fix(store): fix
This commit is contained in:
@@ -967,8 +967,16 @@ const TopTools = (
|
||||
if (!renderPolygons) return
|
||||
let taskLabelData = await storage.getItem(taskDetail!.id.toString())
|
||||
if (taskLabelData) {
|
||||
const backupData = taskLabelData.state?.[name]
|
||||
if (!name || !backupData) {
|
||||
notifications.show({
|
||||
color: "yellow",
|
||||
message: "备份不存在或尚未选择备份",
|
||||
})
|
||||
return
|
||||
}
|
||||
const finalData = adjustAllPoints(
|
||||
taskLabelData.state[name],
|
||||
backupData,
|
||||
usePaperStore.getState().rasterScale
|
||||
)
|
||||
for (const entry of finalData.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user