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

fix: 菜单显示问题

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