|
|
@@ -113,21 +113,20 @@ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async getCasLoginInfo() { |
|
|
|
let loginResult=null; |
|
|
|
let loginResult = null; |
|
|
|
const url = new URL(window.location.href); |
|
|
|
const params = new URLSearchParams(url.search); |
|
|
|
const ticket = params.get('ticket'); |
|
|
|
// const ticket = "1" |
|
|
|
if (ticket) { |
|
|
|
console.log("1:",ticket); |
|
|
|
let postResult = await this.POST('/api/ht/ticket', { |
|
|
|
ticket, |
|
|
|
}) |
|
|
|
console.log(postResult); |
|
|
|
if (postResult[1].data.code == '200') { |
|
|
|
loginResult = postResult[1].data.data; |
|
|
|
} else { |
|
|
|
this.TOAST(postResult[1].data.info); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
const { |
|
|
|
baseinfo, |
|
|
@@ -141,13 +140,13 @@ |
|
|
|
role |
|
|
|
} |
|
|
|
const token = baseinfo.token |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.SET_GLOBAL('token', token) |
|
|
|
this.SET_GLOBAL('loginUser', user) |
|
|
|
|
|
|
|
|
|
|
|
this.SET_STORAGE('token', token) |
|
|
|
|
|
|
|
|
|
|
|
this.HIDE_LOADING() |
|
|
|
this.TAB_TO('/pages/home') |
|
|
|
|
|
|
|