outaozhen пре 3 година
родитељ
комит
b602da949a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/pages/Schema/Option/index.tsx

+ 2 - 2
src/pages/Schema/Option/index.tsx

@@ -61,7 +61,7 @@ const Option = () => {
     {
       title: '排序',
       dataIndex: 'sort',
-      width: 30,
+      width: 50,
       render: () => <DragHandle />
     },
     {
@@ -119,7 +119,7 @@ const Option = () => {
   )
 
   const DraggableBodyRow = ({ className, style, ...restProps }) => {
-    const index = menuData
+    const index = state.menuData
       .find(item => item.ID === activeID)
       ?.items.findIndex(x => x.index === restProps['data-row-key'])
     return <SortableItem index={index} {...restProps} />