Bladeren bron

change env

pull/72/head
zhangtao 1 jaar geleden
bovenliggende
commit
b33ab24c3c
5 gewijzigde bestanden met toevoegingen van 5 en 8 verwijderingen
  1. +1
    -2
      .env.development
  2. +1
    -2
      .env.localhost
  3. +1
    -2
      .env.production
  4. +1
    -2
      .env.test
  5. +1
    -0
      src/router/guard/permission-guard.js

+ 1
- 2
.env.development Bestand weergeven

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

+ 1
- 2
.env.localhost Bestand weergeven

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

+ 1
- 2
.env.production Bestand weergeven

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

+ 1
- 2
.env.test Bestand weergeven

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

+ 1
- 0
src/router/guard/permission-guard.js Bestand weergeven

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

Laden…
Annuleren
Opslaan