Compare commits
3 Commits
adc41d5918
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a81a41c78 | ||
|
|
feb1b2e8e9 | ||
|
|
281c6d71b2 |
@@ -79,23 +79,23 @@ export default {
|
||||
cancelButtonText: this.$t('cancel'),
|
||||
type: 'warning',
|
||||
});
|
||||
|
||||
|
||||
// 先调用 CAS 退出接口
|
||||
await this.outlogincasapi();
|
||||
|
||||
|
||||
// 再执行 Store 退出
|
||||
await this.$store.dispatch('LogOut');
|
||||
|
||||
|
||||
// 清理本地存储
|
||||
sessionStorage.clear();
|
||||
localStorage.clear();
|
||||
localStorage.setItem('is_logging_out', 'true');
|
||||
// 跳转
|
||||
// location.href = '/index';
|
||||
// window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A9000%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
window.location.href = 'http://localhost:81/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A80%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
|
||||
|
||||
window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A9000%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
// window.location.href = 'http://localhost:81/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A80%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
|
||||
|
||||
} catch (error) {
|
||||
// 用户取消或出错时的处理
|
||||
console.log('退出取消或失败', error);
|
||||
|
||||
@@ -309,8 +309,8 @@ export default {
|
||||
// 没有ticket且没有token,跳转统一身份认证
|
||||
const isTs = true;
|
||||
if (isTs) {
|
||||
// window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A9000%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
window.location.href = 'http://localhost:81/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A80%2Flogin' + (this.redirect ? '&ssUrl=' + this.redirect : '');
|
||||
window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A9000%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||
// window.location.href = 'http://localhost:81/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A80%2Flogin' + (this.redirect ? '&ssUrl=' + this.redirect : '');
|
||||
}
|
||||
} else if (ticket && !token) {
|
||||
// 有ticket但没有token,请求登录
|
||||
|
||||
Reference in New Issue
Block a user