zhangtao
laozt 1 year ago
parent 141ce15162
commit b32abcd274

@ -8,7 +8,7 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://192.168.0.105:9033' # VUE_APP_BASE_API = 'http://192.168.0.105:9033'
# VUE_APP_BASE_API = 'http://39.101.188.84:9033' # VUE_APP_BASE_API = 'http://39.101.188.84:9033'
VUE_APP_BASE_API = 'http://180.108.205.123:13002' VUE_APP_BASE_API = 'http://180.108.205.123:13002'
n
# 统一登录-内网 # 统一登录-内网
VUE_APP_SSO_LOGIN_N = 'http://2.46.4.197:8090/sso-server/oauth2/sso?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F&response_type=code' VUE_APP_SSO_LOGIN_N = 'http://2.46.4.197:8090/sso-server/oauth2/sso?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F&response_type=code'

@ -135,10 +135,7 @@ export default {
); );
if (isGovernmentAffairsNetwork == "1") { if (isGovernmentAffairsNetwork == "1") {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = location.href = process.env.VUE_APP_SSO_LOGOUT_N;
window.location.hostname == "180.108.205.123"
? process.env.VUE_APP_SSO_LOGOUT_W
: process.env.VUE_APP_SSO_LOGOUT_N;
} else { } else {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = "/login?redirect=%2Findex"; location.href = "/login?redirect=%2Findex";

@ -130,10 +130,7 @@ export default {
// console.log(""); // console.log("");
if (isGovernmentAffairsNetwork == "1") { if (isGovernmentAffairsNetwork == "1") {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = location.href = process.env.VUE_APP_SSO_LOGOUT_N;
window.location.hostname == "180.108.205.123"
? process.env.VUE_APP_SSO_LOGOUT_W
: process.env.VUE_APP_SSO_LOGOUT_N;
} else { } else {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = "/login?redirect=%2Findex"; location.href = "/login?redirect=%2Findex";

@ -82,10 +82,7 @@ router.beforeEach((to, from, next) => {
}); });
}) })
.catch((err) => { .catch((err) => {
location.href = location.href = process.env.VUE_APP_SSO_LOGIN_N;
window.location.hostname == "180.108.205.123"
? process.env.VUE_APP_SSO_LOGIN_W
: process.env.VUE_APP_SSO_LOGIN_N;
}); });
} else { } else {
// console.log('没code') // console.log('没code')
@ -94,10 +91,7 @@ router.beforeEach((to, from, next) => {
next(); next();
NProgress.done(); NProgress.done();
} else { } else {
location.href = location.href = process.env.VUE_APP_SSO_LOGIN_N;
window.location.hostname == "180.108.205.123"
? process.env.VUE_APP_SSO_LOGIN_W
: process.env.VUE_APP_SSO_LOGIN_N;
NProgress.done(); NProgress.done();
} }
} }

Loading…
Cancel
Save