Commit 283a02b1 authored by 张冬's avatar 张冬

改跳转

parent b2fb0d15
......@@ -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) {
......
......@@ -792,8 +792,6 @@ export default new Router({
}
]
}
],
mode:'history'
],
});
......@@ -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);
}
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment