Elements-SY

modify

...@@ -47,26 +47,26 @@ const permission = { ...@@ -47,26 +47,26 @@ const permission = {
47 return new Promise((resolve) => { 47 return new Promise((resolve) => {
48 // 向后端请求路由数据 48 // 向后端请求路由数据
49 getRouters().then((res) => { 49 getRouters().then((res) => {
50 - // const newUrl = { 50 + const newUrl = {
51 - // id: 24, 51 + id: 24,
52 - // name: "et86", 52 + name: "et86",
53 - // path: "/et86", 53 + path: "/et86",
54 - // hidden: false, 54 + hidden: false,
55 - // component: "allocationConfig/et86", 55 + component: "allocationConfig/et86",
56 - // meta: { 56 + meta: {
57 - // title: "ET86", 57 + title: "ET86",
58 - // icon: "edit", 58 + icon: "edit",
59 - // permissions: "allocation:rand:list", 59 + permissions: "allocation:rand:list",
60 - // noCache: false, 60 + noCache: false,
61 - // }, 61 + },
62 - // alwaysShow: false, 62 + alwaysShow: false,
63 - // children: null, 63 + children: null,
64 - // }; 64 + };
65 - // res.data.map((item) => { 65 + res.data.map((item) => {
66 - // if (item.name == "AllocationConfig") { 66 + if (item.name == "AllocationConfig") {
67 - // item.children.push(newUrl); 67 + item.children.push(newUrl);
68 - // } 68 + }
69 - // }); 69 + });
70 res.data = hasPermi.routerPer(res.data); 70 res.data = hasPermi.routerPer(res.data);
71 const sdata = JSON.parse(JSON.stringify(res.data)); 71 const sdata = JSON.parse(JSON.stringify(res.data));
72 const rdata = JSON.parse(JSON.stringify(res.data)); 72 const rdata = JSON.parse(JSON.stringify(res.data));
......