Commit 152e3620 by liangjianmin

js

parent 80c27c51
......@@ -15,7 +15,7 @@ let NODE_ENVS = "/";
switch (envs) {
case 'development':
//开发环境
NODE_ENVS = 'http://cloud.liexindev.net';
NODE_ENVS = 'http://192.168.2.142:8080';
break;
case 'test':
//测试环境
......
......@@ -241,7 +241,7 @@
this.tabss(key)
},
logout() {
this.$http('get', "/auth/logout").then(res => {
this.$http('POST', "/auth/logout").then(res => {
}).catch(err => {
console.log(err.message);
})
......
......@@ -76,7 +76,7 @@ router.beforeEach((to, from, next) => {
}).then(data => {
let res = data.data;
if (res.err_code === 101) {
window.location.href = '/#/login'
window.location.href = '/#/login';
}
}).catch(err => {
console.log(err.message);
......
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 sign in to comment