单点修改1

This commit is contained in:
DESKTOP-AD8UBUJ\ling
2026-03-06 22:22:42 +08:00
parent 23f4390a9b
commit 1373b56b94
2 changed files with 25 additions and 22 deletions

View File

@@ -144,27 +144,23 @@ export default {
mounted() {
this.handleLoginFocus();
//获取url传参 ticket url
const ticket = this.$route.query.ticket;
debugger
let token = getToken();
console.log(ticket);
console.log(token);
if (ticket == undefined && token == null) {
//跳转统一身份认证
var isTs = true;
if (isTs) {
debugger
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 {
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) {
//请求登录
this.logincasapi();
} else {
}
}
},
created() {},
methods: {