update 重新登录逻辑

This commit is contained in:
路 范
2021-09-16 10:59:58 +08:00
parent e019406b2c
commit 944a7bc43e

View File

@@ -283,6 +283,8 @@ export default {
data() { data() {
return { return {
data: { data: {
idCard:'加载中...',
userName:'加载中...',
policiesRegulationsLists: { policiesRegulationsLists: {
totalCount: 0, totalCount: 0,
}, },
@@ -313,7 +315,7 @@ export default {
this.data = data.data.data; this.data = data.data.data;
this.setZwUserAplus(this.data.idCard, this.data.userName); this.setZwUserAplus(this.data.idCard, this.data.userName);
} else { } else {
var errorCodes = ["6001", "6501"]; var errorCodes = [6001, 6501];
if (errorCodes.indexOf(data.data.bizCode) > -1) { if (errorCodes.indexOf(data.data.bizCode) > -1) {
window.location.replace( window.location.replace(
"https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs" "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs"