Browse Source

1

yantai_master
dai 3 years ago
parent
commit
d319c67658
  1. 23
      src/views/pages/yantai-login-transit.vue

23
src/views/pages/yantai-login-transit.vue

@ -23,6 +23,7 @@ export default {
async mounted() {
let code = getQueryPara("code");
console.log("------------------code", code);
const loading = this.$loading({
lock: true,
text: "登录中……",
@ -34,29 +35,13 @@ export default {
await this.login(code);
loading.close();
} else {
// await this.skip(code);
location.href =
"http://172.20.46.155:8080/sso/login?client_id=1000006&redirect_url=" +
encodeURIComponent(location.href);
// location.href =
// "http://172.20.46.155:8080/sso/login?client_id=1000006&redirect_url=" +
// encodeURIComponent(location.href);
}
},
methods: {
//id
async skip() {
const url = "/gov222";
let params = {};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
location.href = data.url;
} else {
console.log("获取跳转页面失败", msg);
}
},
//id
async login(client_code) {
const url = "/auth/sso-govlogin-yantai/" + client_code;

Loading…
Cancel
Save