outaozhen 3 anni fa
parent
commit
b0ad1a6df4

+ 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 })