Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
9233a99d8d7b19b10e9c1e9b0d27f515e4673b46
1 parent
85d1b76f
权限列表,如果能从缓存中加载到数据,则获取缓存中的数据
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/common.js
hg-monitor-web-base/src/main/resources/static/src/controller/common.js
View file @
9233a99
...
...
@@ -1103,6 +1103,13 @@ layui.define(['xmSelect', 'md5'], function (exports) {
/**检查权限*/
checkPermission
:
function
(
access_token
)
{
// Start Wang 2021/12/13 19:42 权限列表,如果能从缓存中加载到数据,则获取缓存中的数据
var
ps
=
sessionStorage
.
getItem
(
'permissions'
);
debugger
if
(
ps
&&
ps
!=
''
&&
ps
!=
null
){
return
ps
.
split
(
','
);
}
// End Wang 2021/12/13 19:43 权限列表,如果能从缓存中加载到数据,则获取缓存中的数据
var
pers
=
[];
$
.
ajax
({
type
:
'get'
,
...
...
Please
register
or
login
to post a comment