Commit 74e61c14 authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 菜单显示问题

parent 81d43e9a
...@@ -87,7 +87,7 @@ export function render(oldRender: Function) { ...@@ -87,7 +87,7 @@ export function render(oldRender: Function) {
const { data, code } = res const { data, code } = res
if (code === 1000) { if (code === 1000) {
setAuth(data as any) setAuth(data as any)
setRouters(data.auth as any) setRouters(data.urls)
} else { } else {
removeAuth() removeAuth()
removeRouters() removeRouters()
......
...@@ -122,7 +122,6 @@ const UserSystem: React.FC<{}> = () => { ...@@ -122,7 +122,6 @@ const UserSystem: React.FC<{}> = () => {
return ( return (
<PageHeaderWrapper> <PageHeaderWrapper>
<Card className="common-wrapper"> <Card className="common-wrapper">
<StandardTable <StandardTable
columns={columns} columns={columns}
......
...@@ -137,10 +137,6 @@ const AddUser: React.FC<{}> = () => { ...@@ -137,10 +137,6 @@ const AddUser: React.FC<{}> = () => {
} }
} }
const handleAddRole = () => {
setRoleVisible(true);
}
const handlePlateformSelect = (key, node) => { const handlePlateformSelect = (key, node) => {
setOriginSelectNode({ id: key * 1, name: node._title }) setOriginSelectNode({ id: key * 1, name: node._title })
} }
...@@ -233,7 +229,6 @@ const AddUser: React.FC<{}> = () => { ...@@ -233,7 +229,6 @@ const AddUser: React.FC<{}> = () => {
okText="确认" okText="确认"
cancelText="取消" cancelText="取消"
getContainer='#root' getContainer='#root'
// destroyOnClose={true}
> >
<TabTree <TabTree
fetchData={params => fetchOriginTreeData(params)} fetchData={params => fetchOriginTreeData(params)}
......
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