| | |
| | | type: "warning" |
| | | }).then(() => { |
| | | this.$store.dispatch("LogOut").then(() => { |
| | | this.$router.push({ path: "/login" }); |
| | | // this.$router.push({ path: "/login" }); |
| | | window.opener.location.href = 'http://dev.jxpskj.com:8020/ncny/login.html' |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | const params = this.$route.query |
| | | const state = params.state |
| | | const code = params.code |
| | | window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}` |
| | | // window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}` |
| | | window.opener.location.href = 'http://dev.jxpskj.com:8020/ncny/login.html' |
| | | } |
| | | } |
| | | </script> |
| | |
| | | //如果在白名单里则自行catch逻辑处理 |
| | | if (statusWhiteList.includes(status)) return Promise.reject(res); |
| | | //如果是401则跳转到登录页面 |
| | | if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/login'})); |
| | | if (status === 401) store.dispatch('FedLogOut').then(() => |
| | | // router.push({path: '/login'}) |
| | | window.opener.location.href = 'http://dev.jxpskj.com:8020/ncny/login.html' |
| | | ); |
| | | // 如果请求为非200否者默认统一处理 |
| | | if (status !== 200) { |
| | | Message({ |