Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-purchase
Commits
283a02b1
Commit
283a02b1
authored
Sep 23, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改跳转
parent
b2fb0d15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
Header.vue
src/components/common/Header.vue
+2
-2
index.js
src/router/index.js
+1
-3
request.js
src/utils/request.js
+6
-6
No files found.
src/components/common/Header.vue
View file @
283a02b1
...
...
@@ -85,8 +85,8 @@ export default {
}
},
join
(){
//
window.location.href="http://192.168.200.201:8081/"
window
.
location
.
href
=
" http://localhost:3000/"
window
.
location
.
href
=
"http://192.168.200.201:8081/"
//
window.location.href=" http://localhost:3000/"
},
// 用户名下拉菜单选择事件
handleCommand
(
command
)
{
...
...
src/router/index.js
View file @
283a02b1
...
...
@@ -792,8 +792,6 @@ export default new Router({
}
]
}
],
mode
:
'history'
],
});
src/utils/request.js
View file @
283a02b1
...
...
@@ -5,8 +5,8 @@ import { Message, MessageBox } from 'element-ui'
// 创建axios实例
const
service
=
axios
.
create
({
//
baseURL: 'http://192.168.200.201:8082/apis',
baseURL
:
'http://192.168.3.35:8085/apis'
,
baseURL
:
'http://192.168.200.201:8082/apis'
,
//
baseURL: 'http://192.168.3.35:8085/apis',
timeout
:
35000
// 请求超时时间
})
...
...
@@ -39,11 +39,11 @@ service.interceptors.response.use(
error
=>
{
if
(
error
.
response
.
status
==
401
){
Message
.
error
(
"登陆失效,请重新登录!"
)
//
localStorage.removeItem('token');
//
setTimeout(function () {
// // location.href = 'http://192.168.200.201:8081
/';
localStorage
.
removeItem
(
'token'
);
setTimeout
(
function
()
{
location
.
href
=
'http://192.168.200.201:8081/login/user
/'
;
// location.href = 'http://localhost:3000/login/user/';
//
}, 2000);
},
2000
);
}
}
)
...
...
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