This commit is contained in:
孙超
2022-12-15 18:48:41 +08:00
committed by EricZeng
parent 5bceed7105
commit 860d0b92e2
59 changed files with 25972 additions and 1497 deletions

View File

@@ -423,7 +423,7 @@ export default (props: { curTabKey: string }): JSX.Element => {
dataIndex: 'authedUserCnt',
width: 100,
render(cnt: Pick<RoleProps, 'authedUserCnt'>, record: RoleProps) {
return (
return cnt ? (
<Popover
placement="right"
overlayClassName="tags-with-hide-popover"
@@ -441,6 +441,10 @@ export default (props: { curTabKey: string }): JSX.Element => {
{cnt}
</Button>
</Popover>
) : (
<Button size="small" type="link">
{cnt}
</Button>
);
},
},

View File

@@ -53,7 +53,7 @@ const EditUserDrawer = forwardRef((props, ref) => {
})
: request(api.editUser, {
method: 'POST',
data: { ...formData },
data: { ...formData, phone: Date.now() },
});
requestPromise.then(
(res) => {