Explorar o código

:bug: 删除后提交的数据是未更改过的

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
06e9b0c6aa
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      dashboard/src/components/article/EditableTree.tsx

+ 5 - 0
dashboard/src/components/article/EditableTree.tsx

@@ -242,6 +242,11 @@ const Widget = ({
 
             console.log("delete", keys, find, tmp);
             setGData(tmp);
+            const list = treeToList(tmp);
+            setListTreeData(list);
+            if (typeof onChange !== "undefined") {
+              onChange(list);
+            }
           }}
         >
           {intl.formatMessage({ id: "buttons.remove" })}