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
Plain Diff
Browse Files
Authored by
xwx
2021-12-22 09:33:54 +0800
Commit
d0af3c772e096c8463cc76092f4b8da5bf7db4d7
2 parents
2c56447f
7a059e2a
Merge branch 'master' of
http://113.200.75.45:82/monitor_v3/hg-monitor-web
into master-v32-xwx
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
hg-monitor-web-base/src/main/resources/static/src/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/script/global.js
hg-monitor-web-base/src/main/resources/static/src/index.js
View file @
d0af3c7
...
...
@@ -111,7 +111,7 @@ layui.extend({
$
.
ajax
({
url
:
sessionStorage
.
getItem
(
'domainName'
)
+
'/api-user/menus/current?type=1'
,
async
:
false
,
data
:
{
'type'
:
'1'
,
access_token
:
localStorage
.
getItem
(
"access_token"
),},
data
:
{
access_token
:
localStorage
.
getItem
(
"access_token"
),},
success
(
response
)
{
$
.
each
(
response
.
data
,
function
(
i
,
v
)
{
if
(
v
.
subMenus
){
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/script/global.js
View file @
d0af3c7
...
...
@@ -2,8 +2,7 @@
* 系统公共配置项
*/
/*设置全局请求地址*/
const
domainName
=
"http://127.0.0.1:8183"
;
var
global
=
{};
...
...
@@ -11,10 +10,6 @@ var global = {};
global
.
layui
=
window
.
parent
.
layui
;
global
.
common
=
{
domainName
:
domainName
,
tokenKey
:
'access_token'
,
// 存放token的key
refreshToken
:
'refresh_token'
,
// 存放token的key
hasEnter
:
false
// 登陆状态
};
global
.
showLoading
=
(
callback
)
=>
{
...
...
Please
register
or
login
to post a comment