From 2125269c6cde94f4f90233f665f46d8c3f68608e Mon Sep 17 00:00:00 2001 From: chy Date: Fri, 6 Mar 2026 22:41:57 +0800 Subject: [PATCH 1/2] 1 --- src/views/login.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 914c4fc..fa3990d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -155,8 +155,8 @@ export default { if (isTs) { debugger - window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A8080%2F%23%2Flogin'; - //window.location.href = 'http://127.0.0.1/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F127.0.0.1%3A9528%2F%23%2Flogin'; + window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A8080%2F%23%2Flogin'; + // window.location.href = 'http://127.0.0.1/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F127.0.0.1%3A9528%2F%23%2Flogin'; } } else if (ticket != undefined && token == null) { From c5fdbd6a2779c63ed72a5689f94cb807733ca44d Mon Sep 17 00:00:00 2001 From: chy Date: Fri, 6 Mar 2026 22:45:55 +0800 Subject: [PATCH 2/2] 111111112 --- src/views/login.vue | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 4badc67..6433662 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -144,24 +144,22 @@ export default { mounted() { this.handleLoginFocus(); //获取url传参 ticket url - const ticket = this.$route.query.ticket; - let token = getToken(); - if (ticket == undefined && token == null) { - //跳转统一身份认证 - var isTs = true; - if (isTs) { - console.log(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%3A8080%2F%23'+this.redirect; + const ticket = this.$route.query.ticket; + let token = getToken(); + if (ticket == undefined && token == null) { + //跳转统一身份认证 + var isTs = true; + if (isTs) { + console.log(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%3A8080%2F%23" + this.redirect; // window.location.href = 'http://localhost:8099/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A9528%2F%23'+this.redirect; - - } - } else if (ticket != undefined && token == null) { - //请求登录 - this.logincasapi(); - } else { - - } + } else if (ticket != undefined && token == null) { + //请求登录 + this.logincasapi(); + } else { + } }, created() {}, methods: {