Explorar el Código

Merge branch 'develop' of gitadmin/tuoheng_pilot_web into release

pull/114/head
zhangtao hace 1 año
padre
commit
e8d98032c7
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +2
    -2
      .env.localhost
  2. +1
    -1
      src/router/guard/permission-guard.js

+ 2
- 2
.env.localhost Ver fichero

@@ -13,7 +13,7 @@ VITE_APP_GLOB_BASE_API = '/api-local'
# mock base api
VITE_APP_GLOB_BASE_API_MOCK = '/api-mock'

VITE_AUTHORITY = 'http://192.168.11.11:8090'
#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=='
VITE_REDIRECT_URI = 'http://192.168.12.6:3050/login'

+ 1
- 1
src/router/guard/permission-guard.js Ver fichero

@@ -5,7 +5,7 @@ import { getUserInfo, signinRedirect, signoutRedirect } from '@/utils/oidc/index

export function createPermissionGuard(router) {
const userStore = useUserStore()
userStore.getUserInfos()
// userStore.getUserInfos()
const permissionStore = usePermissionStore()
router.beforeEach(async(to, from, next) => {
const oidcUser = await getUserInfo()

Cargando…
Cancelar
Guardar