Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
zhaochengxiang
szse
Commits
f06e389e
Commit
f06e389e
authored
Jul 17, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接跳转权限判断
parent
9661257b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
index.js
src/util/index.js
+5
-4
No files found.
src/util/index.js
View file @
f06e389e
...
@@ -422,6 +422,7 @@ export function checkMenuAdmit(menuinfo) {
...
@@ -422,6 +422,7 @@ export function checkMenuAdmit(menuinfo) {
}
}
let
queryurl
=
`/view/
${
menuinfo
}
`
let
queryurl
=
`/view/
${
menuinfo
}
`
let
realurl
=
`/center-home/menu/
${
menuinfo
}
`
let
menumessage
=
menu
.
mapurl
[
queryurl
]
let
menumessage
=
menu
.
mapurl
[
queryurl
]
if
(
menumessage
)
{
if
(
menumessage
)
{
...
@@ -439,19 +440,19 @@ export function checkMenuAdmit(menuinfo) {
...
@@ -439,19 +440,19 @@ export function checkMenuAdmit(menuinfo) {
if
((
menumessage
.
bit
&
totalbit
)
===
menumessage
.
bit
){
if
((
menumessage
.
bit
&
totalbit
)
===
menumessage
.
bit
){
return
true
return
true
}
else
{
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
menuinfo
}
的权限`
);
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
return
false
}
}
}
else
{
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
menuinfo
}
的权限`
);
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
;
return
false
;
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
menuinfo
}
的权限`
);
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
;
return
false
;
}
}
}
else
{
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
menuinfo
}
的权限`
);
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
return
false
}
}
}
}
...
...
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