修改统一身份认证
This commit is contained in:
@@ -98,6 +98,7 @@ import { Decrypt, Encrypt } from "@/utils/index";
|
|||||||
import { login, logincas } from "@/api/login";
|
import { login, logincas } from "@/api/login";
|
||||||
import { transPsw } from "@/utils/encrypted";
|
import { transPsw } from "@/utils/encrypted";
|
||||||
import { setToken, getToken, setAccessUser } from "@/utils/auth";
|
import { setToken, getToken, setAccessUser } from "@/utils/auth";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Login",
|
name: "Login",
|
||||||
components: {
|
components: {
|
||||||
@@ -153,16 +154,16 @@ export default {
|
|||||||
var isTs = true;
|
var isTs = true;
|
||||||
if (isTs) {
|
if (isTs) {
|
||||||
debugger
|
debugger
|
||||||
//window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http://192.168.1.241:8080/#/login';
|
|
||||||
window.location.href = 'http://127.0.0.1/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http://127.0.0.1:9528/#/login';
|
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) {
|
} else if (ticket != undefined && token == null) {
|
||||||
//请求登录
|
//请求登录
|
||||||
console.log(222222222);
|
|
||||||
this.logincasapi();
|
this.logincasapi();
|
||||||
} else {
|
} else {
|
||||||
console.log(3333333);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
|
|||||||
Reference in New Issue
Block a user