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 = "/";
switch
(
envs
)
{
case
'development'
:
//开发环境
NODE_ENVS
=
'http://192.168.2.1
64
:8080'
;
NODE_ENVS
=
'http://192.168.2.1
42
:8080'
;
break
;
case
'test'
:
//测试环境
...
...
src/components/menu.vue
View file @
cf90e32a
...
...
@@ -213,7 +213,7 @@
}
else
{
this
.
$http
(
'get'
,
"/api/user/getuserinfo"
).
then
(
res
=>
{
this
.
userinfo
=
res
.
data
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
sessionStorage
.
setItem
(
'userInfox'
,
JSON
.
stringify
(
res
.
data
));
}
...
...
@@ -301,13 +301,9 @@
logout
()
{
this
.
$http
(
'post'
,
"/auth/logout"
).
then
(
res
=>
{
Util
.
delCookie
(
'token'
);
if
(
res
.
err_code
===
0
)
{
window
.
location
.
href
=
'/#/login'
;
sessionStorage
.
removeItem
(
'userInfox'
)
history
.
go
(
0
);
}
else
{
Message
(
res
.
err_msg
);
}
}).
catch
(
err
=>
{
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