|
@@ -20,26 +20,25 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
const reason = this.$route.query.reason
|
|
const reason = this.$route.query.reason
|
|
|
console.log('🚫 进入404页面,原因:', reason || '未知')
|
|
console.log('🚫 进入404页面,原因:', reason || '未知')
|
|
|
-
|
|
|
|
|
- // 本地和测试环境不跳转到统一认证门户
|
|
|
|
|
- if (isLocal || isTest) {
|
|
|
|
|
- console.log('🔧 本地/测试环境:不跳转到登录门户')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- console.log('🔄 即将重定向到登录门户...')
|
|
|
|
|
-
|
|
|
|
|
- // 清除本地存储的认证信息
|
|
|
|
|
- localStorage.removeItem('shudao_refresh_token')
|
|
|
|
|
- localStorage.removeItem('shudao_token_type')
|
|
|
|
|
- localStorage.removeItem('shudao_username')
|
|
|
|
|
- sessionStorage.removeItem('auth_debug_logs')
|
|
|
|
|
-
|
|
|
|
|
- // 延迟 2 秒后重定向到登录门户网站
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- console.log('🚀 开始跳转到登录门户')
|
|
|
|
|
- window.location.href = 'https://tyrz.scgsdsj.com/iga/login_sd.html'
|
|
|
|
|
- }, 2000)
|
|
|
|
|
|
|
+ console.log('🔧 当前环境:', { isLocal, isTest, isProd })
|
|
|
|
|
+
|
|
|
|
|
+ // 暂时禁用重定向,方便调试
|
|
|
|
|
+ console.log('⚠️ 重定向已禁用,请检查控制台日志排查问题')
|
|
|
|
|
+
|
|
|
|
|
+ // TODO: 调试完成后恢复以下重定向逻辑
|
|
|
|
|
+ // if (isLocal || isTest) {
|
|
|
|
|
+ // console.log('🔧 本地/测试环境:不跳转到登录门户')
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
|
|
+ // console.log('🔄 即将重定向到登录门户...')
|
|
|
|
|
+ // localStorage.removeItem('shudao_refresh_token')
|
|
|
|
|
+ // localStorage.removeItem('shudao_token_type')
|
|
|
|
|
+ // localStorage.removeItem('shudao_username')
|
|
|
|
|
+ // sessionStorage.removeItem('auth_debug_logs')
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // console.log('🚀 开始跳转到登录门户')
|
|
|
|
|
+ // window.location.href = 'https://tyrz.scgsdsj.com/iga/login_sd.html'
|
|
|
|
|
+ // }, 2000)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|