@@ -12,5 +12,4 @@ VITE_APP_GLOB_BASE_API = '' | |||
VITE_AUTHORITY = 'http://192.168.11.11:8090' | |||
VITE_CLIENT_ID = 'tuoheng-pilot-admin' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' | |||
VITE_REDIRECT_URI = 'http://192.168.11.11:7011/login' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' |
@@ -15,5 +15,4 @@ VITE_APP_GLOB_BASE_API_MOCK = '/api-mock' | |||
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.8:3050/login' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' |
@@ -12,5 +12,4 @@ VITE_APP_GLOB_BASE_API = '' | |||
VITE_AUTHORITY = 'https://oidc.t-aaron.com' | |||
VITE_CLIENT_ID = 'tuoheng-pilot-admin' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' | |||
VITE_REDIRECT_URI = 'https://pilot.t-aaron.com/login' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' |
@@ -12,5 +12,4 @@ VITE_APP_GLOB_BASE_API = '' | |||
VITE_AUTHORITY = 'https://login-test.t-aaron.com' | |||
VITE_CLIENT_ID = 'tuoheng-pilot-admin' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' | |||
VITE_REDIRECT_URI = 'http://106.15.120.154:9089/login' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' |
@@ -8,6 +8,7 @@ export function createPermissionGuard(router) { | |||
const permissionStore = usePermissionStore() | |||
router.beforeEach(async(to, from, next) => { | |||
const oidcUser = await getUserInfo() | |||
debugger | |||
if (oidcUser) { | |||
const hasRoutes = !!permissionStore.permissionRoutes.length | |||
if (hasRoutes) { |