Commit 95ddd461 authored by Bill's avatar Bill

修改结算bug

parent f65e49a0
...@@ -279,7 +279,7 @@ const MemberSettleAdd: React.FC = () => { ...@@ -279,7 +279,7 @@ const MemberSettleAdd: React.FC = () => {
} }
/> />
</Card> </Card>
<Prompt when={unsaved} message="内容还没保存,确定离开吗?"/> <Prompt when={unsaved && (isAdd || isEdit)} message="内容还没保存,确定离开吗?"/>
</PageHeaderWrapper> </PageHeaderWrapper>
) )
} }
......
...@@ -42,7 +42,7 @@ const UserCenter: React.FC<Iprops> = (props) => { ...@@ -42,7 +42,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
// const hasChangeMemberAuth = userAuth?.urls.includes(EDIT_USER_URL); // const hasChangeMemberAuth = userAuth?.urls.includes(EDIT_USER_URL);
// const hasCenterAuth = userAuth?.urls.includes(USER_CENTER_URL); // const hasCenterAuth = userAuth?.urls.includes(USER_CENTER_URL);
const currentRole = userAuth?.roles?.filter((item) => item.memberRoleId === userAuth.memberRoleId) const currentRole = userAuth?.roles?.filter((item) => item.memberRoleId === userAuth.memberRoleId)
const [state, dispatch] = useReducer(reducer, { loading: false, logo: userAuth?.logo}) const [state, dispatch] = useReducer(reducer, { loading: false, logo: userAuth?.logo})
if(!userAuth) { if(!userAuth) {
return null return null
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment