Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-08-21 09:37:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0fb75c7e8925c4ab65cb4defcd0c0b88ee076e8
c0fb75c7
1 parent
793d0d8d
modify
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
src/store/modules/permission.js
src/store/modules/permission.js
View file @
c0fb75c
...
...
@@ -54,21 +54,21 @@ const permission = {
return
new
Promise
((
resolve
)
=>
{
// 向后端请求路由数据
getRouters
().
then
((
res
)
=>
{
const
newUrl
=
{
id
:
24
,
name
:
"et86"
,
path
:
"/et86"
,
hidden
:
false
,
component
:
"allocationConfig/et86"
,
meta
:
{
title
:
"ET86"
,
icon
:
"edit"
,
permissions
:
"allocation:rand:list"
,
noCache
:
false
,
},
alwaysShow
:
false
,
children
:
null
,
};
//
const newUrl = {
//
id: 24,
//
name: "et86",
//
path: "/et86",
//
hidden: false,
//
component: "allocationConfig/et86",
//
meta: {
//
title: "ET86",
//
icon: "edit",
//
permissions: "allocation:rand:list",
//
noCache: false,
//
},
//
alwaysShow: false,
//
children: null,
//
};
res
.
data
.
map
((
item
)
=>
{
if
(
item
.
name
==
"AllocationConfig"
)
{
item
.
children
.
push
(
newUrl
);
...
...
Please
register
or
login
to post a comment