소스 검색

Merge branch 'master' of gitadmin/tuoheng_pilot_web into develop

pull/127/head
zhangtao 1 년 전
부모
커밋
ee5043b95e
4개의 변경된 파일69개의 추가작업 그리고 3개의 파일을 삭제
  1. +0
    -2
      .env.localhost
  2. +1
    -1
      src/router/guard/permission-guard.js
  3. +5
    -0
      src/router/routes/index.js
  4. +63
    -0
      src/views/transfer/index.vue

+ 0
- 2
.env.localhost 파일 보기

@@ -15,5 +15,3 @@ VITE_APP_GLOB_BASE_API_MOCK = '/api-mock'

#VITE_AUTHORITY = 'http://192.168.11.11:8090'
VITE_AUTHORITY = 'https://login-test.t-aaron.com'
VITE_CLIENT_ID = 'tuoheng-pilot-admin'
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA=='

+ 1
- 1
src/router/guard/permission-guard.js 파일 보기

@@ -32,7 +32,7 @@ export function createPermissionGuard(router) {
}
}
} else {
if (to.path === '/login') {
if (to.path === '/login' || to.path === '/hnlt/refer') {
next()
} else {
signinRedirect()

+ 5
- 0
src/router/routes/index.js 파일 보기

@@ -11,6 +11,11 @@ export const basicRoutes = [
title: '登录页'
}
},
{
path: '/hnlt/refer',
component: () => import('@/views/transfer/index.vue'),
meta: { title: '中转页' }
},
{
path: '/',
title: '控制台',

+ 63
- 0
src/views/transfer/index.vue 파일 보기

@@ -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.eyJzdWIiOiJobmx0IiwiYXVkIjoidHVvaGV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mctcGlsb3QtYWRtaW5cIixcInJvbGVJZFwiOjF9LHtcImNsaWVudElkXCI6XCJ0dW9oZW5nLWhoei1tcFwiLFwicm9sZUlkXCI6MTQxfSx7XCJjbGllbnRJZFwiOlwidHVvaGVuZy1oaHotYWRtaW5cIixcInJvbGVJZFwiOjE0MX1dIiwiZXhwIjoxNjgzODc2ODg5LCJpYXQiOjE2ODMyNzIwODksInVzZXJuYW1lIjoiaG5sdCJ9.HCufgZllPWfwdEcUCPlf2JmVVX5s68OseDy9HQF6tn2tQEQHDaO0tXUgu9BVrz3JmxkO76DOpWzl0Bc6WQkcQDWycS-QNykrGeW55W0zeBkjAKPnVLzo5BxmSvoEGgFOLDqAQiXdpe_HaaxW81x5_5aJzwFNU7rEXYRTD3Z3bDCgQ_2YN9PsrStZ5K8Vi1-78MsTqJlcfViwcz8amDn9j-5nrtp8BgG2CRt3wYpdHWfSH7n6aFf0Fn2i0Keo0Kf9ClbxDL9QqVUJ1dZeuv98C7c4RrULmOoV0p8n68LuZLXCYA6ZrUewUQAegdeNAi9xud_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>

Loading…
취소
저장