Commit 152e3620 by liangjianmin

js

parent 80c27c51
...@@ -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':
//测试环境 //测试环境
......
...@@ -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);
}) })
......
...@@ -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);
......
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