Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf90e32a
authored
May 19, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
ac9c65bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
src/ajax/index.js
src/components/menu.vue
src/ajax/index.js
View file @
cf90e32a
...
@@ -15,7 +15,7 @@ export let NODE_ENVS = "/";
...
@@ -15,7 +15,7 @@ export let NODE_ENVS = "/";
switch
(
envs
)
{
switch
(
envs
)
{
case
'development'
:
case
'development'
:
//开发环境
//开发环境
NODE_ENVS
=
'http://192.168.2.1
64
:8080'
;
NODE_ENVS
=
'http://192.168.2.1
42
:8080'
;
break
;
break
;
case
'test'
:
case
'test'
:
//测试环境
//测试环境
...
...
src/components/menu.vue
View file @
cf90e32a
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
}
else
{
}
else
{
this
.
$http
(
'get'
,
"/api/user/getuserinfo"
).
then
(
res
=>
{
this
.
$http
(
'get'
,
"/api/user/getuserinfo"
).
then
(
res
=>
{
this
.
userinfo
=
res
.
data
;
this
.
userinfo
=
res
.
data
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
sessionStorage
.
setItem
(
'userInfox'
,
JSON
.
stringify
(
res
.
data
));
sessionStorage
.
setItem
(
'userInfox'
,
JSON
.
stringify
(
res
.
data
));
}
}
...
@@ -301,13 +301,9 @@
...
@@ -301,13 +301,9 @@
logout
()
{
logout
()
{
this
.
$http
(
'post'
,
"/auth/logout"
).
then
(
res
=>
{
this
.
$http
(
'post'
,
"/auth/logout"
).
then
(
res
=>
{
Util
.
delCookie
(
'token'
);
Util
.
delCookie
(
'token'
);
if
(
res
.
err_code
===
0
)
{
window
.
location
.
href
=
'/#/login'
;
window
.
location
.
href
=
'/#/login'
;
sessionStorage
.
removeItem
(
'userInfox'
)
sessionStorage
.
removeItem
(
'userInfox'
)
history
.
go
(
0
);
history
.
go
(
0
);
}
else
{
Message
(
res
.
err_msg
);
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
.
message
);
console
.
log
(
err
.
message
);
})
})
...
...
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