|
@@ -22,10 +22,12 @@ const formateRouter = (data, role = 1) => {
|
|
|
return data.map(item => {
|
|
|
return {
|
|
|
path: item.path,
|
|
|
- name: item.name,
|
|
|
+ name: item.meta.enName,
|
|
|
component: null,
|
|
|
meta: {
|
|
|
title: item.meta.title,
|
|
|
+ showLink: !item.meta.isHide,
|
|
|
+ keepAlive: item.meta.isKeepAlive,
|
|
|
icon: item.meta.icon,
|
|
|
roles: [role],
|
|
|
auths: item.permission
|