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
7bc510df
Commit
7bc510df
authored
Jul 17, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路径跳转菜单权限判断
parent
f06e389e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
index.js
src/util/index.js
+14
-4
No files found.
src/util/index.js
View file @
7bc510df
...
...
@@ -174,6 +174,16 @@ export const showNotifaction = function(title, tip, duration=0) {
});
}
export
const
showInfoNotifaction
=
function
(
title
,
tip
,
duration
=
0
)
{
notification
.
config
({
prefixCls
:
"yy-notification"
});
notification
.
info
({
message
:
title
||
'提示'
,
description
:
(
typeof
tip
===
'string'
?
(
<
span
dangerouslySetInnerHTML
=
{{
__html
:
tip
||
''
}}
/>
)
: tip
)
,
duration
:
duration
,
});
}
export
const
showErrorNotifaction
=
function
(
title
,
tip
,
duration
=
0
)
{
notification
.
config
({
prefixCls
:
"yy-notification"
});
...
...
@@ -440,19 +450,19 @@ export function checkMenuAdmit(menuinfo) {
if
((
menumessage
.
bit
&
totalbit
)
===
menumessage
.
bit
){
return
true
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
show
Info
Notifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
}
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
show
Info
Notifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
;
}
}
catch
(
error
)
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
show
Info
Notifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
return
false
;
}
}
else
{
showNotifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
show
Info
Notifaction
(
'提示'
,
`暂无访问路由
${
realurl
}
的权限`
);
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