置换token
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7b1fd033b9
commit
b7c3ac6607
|
@ -167,5 +167,12 @@ export function loginSelectUserRole(params) {
|
|||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 置换token
|
||||
export function TJUserLoginInfo(params) {
|
||||
return request({
|
||||
url: `/user/TJUserLoginInfo`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ import Img1 from '@/assets/pic-1.png'
|
|||
import logoImg from '@/assets/zzlogo2.png'
|
||||
import { getHospital } from '@/api/hospital.js'
|
||||
import { getHIRHospitalList, updateDefaultHospital } from '@/api/admin'
|
||||
import { TJUserLoginInfo } from '@/api/user'
|
||||
|
||||
// import config from '/public/config.js'
|
||||
export default {
|
||||
|
@ -204,9 +205,23 @@ export default {
|
|||
this.$updateDictionary()
|
||||
// }
|
||||
// }
|
||||
if (this.$route.query.token) {
|
||||
this.TJUserLoginInfo(this.$route.query.token)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||
// 置换token
|
||||
async TJUserLoginInfo(Token) {
|
||||
try {
|
||||
let params = {
|
||||
Token
|
||||
}
|
||||
let res = await TJUserLoginInfo(params)
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
async saveHospital() {
|
||||
if (this.form.Id === this.hospital.Id) return this.visible = false
|
||||
let res = await updateDefaultHospital({
|
||||
|
|
Loading…
Reference in New Issue