|
|
@@ -0,0 +1,63 @@ |
|
|
|
<template> |
|
|
|
<div class="login"> |
|
|
|
<n-spin> |
|
|
|
<template #description> |
|
|
|
正在进入系统中... |
|
|
|
</template> |
|
|
|
</n-spin> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { onMounted } from 'vue' |
|
|
|
export default { |
|
|
|
name: 'TransferPage', |
|
|
|
setup() { |
|
|
|
const router = useRouter() |
|
|
|
const userStore = useUserStore() |
|
|
|
onMounted(() => { |
|
|
|
sessionStorage.setItem( |
|
|
|
'oidc.user:https://oidc.t-aaron.com:tuoheng-pilot-admin', |
|
|
|
JSON.stringify({ |
|
|
|
id_token: 'eyJraWQiOiIwNjdiNWI4My0zZjZjLTRmMjUtOGEzMC1iMzIyYWU2MDZlNWEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJobmx0IiwiYXVkIjoidHVvaGVuZy1waWxvdC1hZG1pbiIsInJvbGUiOlsidHVvaGVuZy1oaHotYWRtaW4iLCJ0dW9oZW5nLWhoei1tcCIsInR1b2hlbmctcGlsb3QtbXAiLCJ0dW9oZW5nLXBpbG90LWFkbWluIl0sImF6cCI6InR1b2hlbmctcGlsb3QtYWRtaW4iLCJpc3MiOiJodHRwczpcL1wvb2lkYy50LWFhcm9uLmNvbSIsImV4cCI6MTY4MzI3Mzg4OSwiaWF0IjoxNjgzMjcyMDg5fQ.EcdtUSmu-VGSL3w45M7hZFPZzOvlJr7s6_JNVGwbqKS3-HI3H4n7gqOBZEDcJH5BA7fuIi9it5ItF5n1WxWGSsrj7fLF6lmFa08Q4_8AZI9zqtod8aLfGAJsaetghJptrJY1EX5iE4DD2jJzWetUY8QTuMwshS7GIAmSvnrZNBPckAH64kVUnHZRwwFtEPdglM9ndq6Ss-f6IlDT0rgxHelMbQhwvuARtIqsQ0Jh6uyUKp4htD1j5Jya27lRp3-kXcSlOwnElPB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C7c4RrULmOoV0p8n68LuZLXCYA6ZrUewUQAegdeNAi9xud_xrPcyJGRDg8u4TT1I4g', |
|
|
|
refresh_token: 'DvRwlUTETSXh0Lb139Z-3XkZWq5Aog7nVcvkiQFfsa8m1UdNskpEKp3afti-mh0mSabHUR-O6ah_h1E4vMc2llLI0hxEQSjcuXNO7Swf8R7pjr6KNDx_eqKcwU2S0rG4', |
|
|
|
token_type: 'Bearer', |
|
|
|
scope: 'openid profile', |
|
|
|
profile: { |
|
|
|
sub: 'hnlt', |
|
|
|
role: ['tuoheng-hhz-admin', 'tuoheng-hhz-mp', 'tuoheng-pilot-mp', 'tuoheng-pilot-admin'], |
|
|
|
azp: 'tuoheng-pilot-admin', |
|
|
|
userId: 288, |
|
|
|
userName: 'hnlt', |
|
|
|
authority: ['tuoheng-pilot-mp', 'tuoheng-pilot-admin', 'tuoheng-hhz-mp', 'tuoheng-hhz-admin'], |
|
|
|
clientRoleList: |
|
|
|
[ |
|
|
|
{ clientId: 'tuoheng-pilot-mp', roleId: 1 }, { clientId: 'tuoheng-pilot-admin', 'roleId': 1 }, |
|
|
|
{ clientId: 'tuoheng-hhz-mp', roleId: 141 }, { clientId: 'tuoheng-hhz-admin', roleId: 141 } |
|
|
|
] |
|
|
|
}, |
|
|
|
expires_at: 1683876888 } |
|
|
|
) |
|
|
|
) |
|
|
|
userStore.getUserInfos() |
|
|
|
router.push({ path: '/' }) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
<style scoped lang='scss'> |
|
|
|
.login{ |
|
|
|
width: 100vw; |
|
|
|
height: 100vh; |
|
|
|
position: relative; |
|
|
|
.n-spin-body{ |
|
|
|
position: absolute; |
|
|
|
left: 50%; |
|
|
|
top: 50%; |
|
|
|
transform: translate(-50%, -50%); |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |