@@ -13,7 +13,7 @@ VITE_APP_GLOB_BASE_API = '/api-local' | |||
# mock base api | |||
VITE_APP_GLOB_BASE_API_MOCK = '/api-mock' | |||
VITE_AUTHORITY = 'https://oidc.test.t-aaron.com' | |||
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' |
@@ -5,7 +5,7 @@ VITE_PUBLIC_PATH = '/' | |||
VITE_APP_USE_MOCK = false | |||
# proxy | |||
VITE_PROXY = [["","http://192.168.11.241:9089"]] | |||
VITE_PROXY = [["","http://106.15.120.154:9089"]] | |||
# base api | |||
VITE_APP_GLOB_BASE_API = '' | |||
@@ -13,4 +13,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://192.168.11.241:9089/login' | |||
VITE_REDIRECT_URI = 'http://106.15.120.154:9089/login' |
@@ -16,6 +16,8 @@ export function setupInterceptor(service) { | |||
if (userInfo) { | |||
const { token_type, access_token } = userInfo | |||
config.headers.Authorization = `${token_type} ${access_token}` | |||
const { VITE_CLIENT_ID } = import.meta.env | |||
config.headers['Client-Id'] = VITE_CLIENT_ID | |||
return config | |||
} else { | |||
signoutRedirect() |