Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
integralMall
integral-mall
Commits
133fed0d
Commit
133fed0d
authored
Aug 12, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整
parent
75146b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
limiting.js
src/utils/limiting.js
+5
-3
No files found.
src/utils/limiting.js
View file @
133fed0d
...
@@ -6,8 +6,10 @@ export default config => {
...
@@ -6,8 +6,10 @@ export default config => {
const
{
createApp
}
=
config
;
const
{
createApp
}
=
config
;
window
.
onload
=
async
function
()
{
window
.
onload
=
async
function
()
{
try
{
try
{
// 获取用户企业id
let
path
=
window
.
location
.
hash
.
split
(
'/'
)[
1
];
let
loginUserRes
=
await
request
.
get
(
'/api-auth/get-current-memu-data?project=integral-mall&path=giftExchange&requestProject=integral-mall'
);
path
=
path
.
indexOf
(
'?'
)
!==
-
1
?
path
.
substring
(
0
,
path
.
indexOf
(
'?'
))
:
path
;
// 获取用户菜单信息
let
loginUserRes
=
await
request
.
get
(
`/api-auth/get-current-memu-data?project=integral-mall&path=
${
path
}
&requestProject=integral-mall`
);
const
leftMenu
=
loginUserRes
.
data
.
result
.
leftMenu
||
[];
const
leftMenu
=
loginUserRes
.
data
.
result
.
leftMenu
||
[];
let
_leftMenuLimit
=
[];
let
_leftMenuLimit
=
[];
leftMenu
.
forEach
(
element
=>
{
leftMenu
.
forEach
(
element
=>
{
...
@@ -20,7 +22,7 @@ export default config => {
...
@@ -20,7 +22,7 @@ export default config => {
}
}
});
});
_leftMenuLimit
=
[...
new
Set
(
_leftMenuLimit
)];
_leftMenuLimit
=
[...
new
Set
(
_leftMenuLimit
)];
store
.
commit
(
'mutations_updateMenuUrl'
,
_leftMenuLimit
);
// 更新
企业id
store
.
commit
(
'mutations_updateMenuUrl'
,
_leftMenuLimit
);
// 更新
菜单url
createApp
();
createApp
();
}
catch
(
error
)
{
}
catch
(
error
)
{
// 未登录
// 未登录
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment