|
@@ -102,15 +102,15 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.$store.dispatch('LogOut').then(() => {
|
|
|
- // location.href = '/index';
|
|
|
- ajax('/sso/logout', {}, function(res) {
|
|
|
- // 根据返回的状态码执行不同动作
|
|
|
- if(res.code === 200) {
|
|
|
- location.href = res.data;
|
|
|
- } else {
|
|
|
- alert(res.msg);
|
|
|
- }
|
|
|
- });
|
|
|
+ location.href = '/index';
|
|
|
+ // ajax('/sso/logout', {}, function(res) {
|
|
|
+ // // 根据返回的状态码执行不同动作
|
|
|
+ // if(res.code === 200) {
|
|
|
+ // location.href = res.data;
|
|
|
+ // } else {
|
|
|
+ // alert(res.msg);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
})
|
|
|
}).catch(() => {});
|
|
|
}
|