@@ -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' |
@@ -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() |