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
152e3620
authored
May 11, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
80c27c51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
src/ajax/index.js
src/components/menu.vue
src/main.js
src/ajax/index.js
View file @
152e3620
...
@@ -15,7 +15,7 @@ let NODE_ENVS = "/";
...
@@ -15,7 +15,7 @@ let NODE_ENVS = "/";
switch
(
envs
)
{
switch
(
envs
)
{
case
'development'
:
case
'development'
:
//开发环境
//开发环境
NODE_ENVS
=
'http://
cloud.liexindev.net
'
;
NODE_ENVS
=
'http://
192.168.2.142:8080
'
;
break
;
break
;
case
'test'
:
case
'test'
:
//测试环境
//测试环境
...
...
src/components/menu.vue
View file @
152e3620
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
this
.
tabss
(
key
)
this
.
tabss
(
key
)
},
},
logout
()
{
logout
()
{
this
.
$http
(
'
get
'
,
"/auth/logout"
).
then
(
res
=>
{
this
.
$http
(
'
POST
'
,
"/auth/logout"
).
then
(
res
=>
{
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
.
message
);
console
.
log
(
err
.
message
);
})
})
...
...
src/main.js
View file @
152e3620
...
@@ -76,7 +76,7 @@ router.beforeEach((to, from, next) => {
...
@@ -76,7 +76,7 @@ router.beforeEach((to, from, next) => {
}).
then
(
data
=>
{
}).
then
(
data
=>
{
let
res
=
data
.
data
;
let
res
=
data
.
data
;
if
(
res
.
err_code
===
101
)
{
if
(
res
.
err_code
===
101
)
{
window
.
location
.
href
=
'/#/login'
window
.
location
.
href
=
'/#/login'
;
}
}
}).
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