Commit 72600467 authored by 左玲玲's avatar 左玲玲 😬

路由修改

parent 53684ab4
...@@ -105,38 +105,38 @@ export const layout = async (props) => { ...@@ -105,38 +105,38 @@ export const layout = async (props) => {
params: { params: {
userId: initialState?.currentUser?.id, userId: initialState?.currentUser?.id,
}, },
// request: (params, defaultMenuData) => { request: (params, defaultMenuData) => {
// let lastArr = initialState?.newMenu?.userHavePermList let lastArr = initialState?.newMenu?.userHavePermList
// ? JSON.parse( ? JSON.parse(
// JSON.stringify(initialState?.newMenu?.userHavePermList) JSON.stringify(initialState?.newMenu?.userHavePermList)
// ) )
// : [], : [],
// newArr = [ newArr = [
// { {
// path: "/welcome", path: "/welcome",
// name: "首页", name: "首页",
// icon: "smile", icon: "smile",
// component: "./Welcome", component: "./Welcome",
// haveChildren: false, haveChildren: false,
// key: "000000", key: "000000",
// parentKey: "0", parentKey: "0",
// routes: [], routes: [],
// children: null, children: null,
// title: null, title: null,
// }, },
// ].concat(lastArr); ].concat(lastArr);
// return newArr; return newArr;
// }, },
locale: false, locale: false,
}, },
// menuRender: (props, defaultDom) => { menuRender: (props, defaultDom) => {
// if (props.isMobile) { if (props.isMobile) {
// return defaultDom; return defaultDom;
// } else { } else {
// return <SiderMenu {...props}></SiderMenu>; return <SiderMenu {...props}></SiderMenu>;
// } }
// }, },
// 自定义 403 页面 // 自定义 403 页面
......
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