Sfoglia il codice sorgente

Merge branch 'develop' of gitadmin/tuoheng_pilot_web into release

pull/74/head
zhangtao 1 anno fa
parent
commit
39309b0da2
3 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. +1
    -1
      .env.localhost
  2. +2
    -2
      .env.test
  3. +2
    -0
      src/utils/http/interceptors.js

+ 1
- 1
.env.localhost Vedi File

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

+ 2
- 2
.env.test Vedi File

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

+ 2
- 0
src/utils/http/interceptors.js Vedi File

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

Loading…
Annulla
Salva