outaozhen 3 年之前
父节点
当前提交
b0ad1a6df4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/Permission/Role/components/SetPermission/index.tsx

+ 1 - 1
src/pages/Permission/Role/components/SetPermission/index.tsx

@@ -22,7 +22,7 @@ const SetPermission = ({ ID, activeKey }) => {
     }
   )
   const handleOnchange = e => {
-    setState({ ...state, checkValue: e[0] })
+    setState({ ...state, checkValue: e })
   }
   const handleSubmit = () => {
     trySetRolePermission({ ID, frontPermission: state.checkValue })