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