diff --git a/src/index.less b/src/index.less index 84cbba6..9ac1226 100644 --- a/src/index.less +++ b/src/index.less @@ -7,6 +7,6 @@ padding: 0; } -.ant-space { +.width-100p { width: 100%; } \ No newline at end of file diff --git a/src/pages/auth/page/index.tsx b/src/pages/auth/page/index.tsx index 9969530..add2c19 100644 --- a/src/pages/auth/page/index.tsx +++ b/src/pages/auth/page/index.tsx @@ -171,13 +171,11 @@ const Pages: React.FC = () => { }, [setRoutes, addKey]) const onClickUpdate = useCallback(() => { - const data = form.getValues() - updatePage(data) + updatePage({ ...form.getValues(), ...form.getHiddenValues() }) }, [form, updatePage]) const onClickCreate = useCallback(() => { const data = form.getValues() - console.log(data) const tmp = { ...data } delete tmp.id createPage(tmp) diff --git a/src/pages/auth/role/index.tsx b/src/pages/auth/role/index.tsx index 85c202b..7670299 100644 --- a/src/pages/auth/role/index.tsx +++ b/src/pages/auth/role/index.tsx @@ -119,7 +119,7 @@ const Roles: React.FC = () => { }, [getRoles]) return ( - +