Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
7da1fe0d
Commit
7da1fe0d
authored
Apr 26, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: getConfig接口替换为netcor接口
parent
030e497e
Pipeline
#48713
skipped with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
base.js
src/api/service/base.js
+1
-1
initConfig.js
src/initConfig.js
+1
-1
No files found.
src/api/service/base.js
View file @
7da1fe0d
...
@@ -12,7 +12,7 @@ const transformGateWay = url => {
...
@@ -12,7 +12,7 @@ const transformGateWay = url => {
export
const
API
=
{
export
const
API
=
{
AUTHORIZATION_TOKEN
:
'/PandaCore/Identity/AuthorizationToken'
,
// 授权验证,不需要走网关加前缀
AUTHORIZATION_TOKEN
:
'/PandaCore/Identity/AuthorizationToken'
,
// 授权验证,不需要走网关加前缀
GET_GATEWAY_CONFIG
:
'/PandaOMS/OMS/HostManager/GetGateWay'
,
GET_GATEWAY_CONFIG
:
'/PandaOMS/OMS/HostManager/GetGateWay'
,
GET_CONFIG
:
'/
CityInterface/rest/services.svc
/GetConfig'
,
GET_CONFIG
:
'/
PandaOMS/OMS/WebSite
/GetConfig'
,
GENERATE_TOKEN
:
'/cityinterface/rest/services.svc/generatetoken'
,
GENERATE_TOKEN
:
'/cityinterface/rest/services.svc/generatetoken'
,
GENERATE_GATEWAT_TOKEN
:
'/PandaCore/GCK/Basis/GenerateToken'
,
GENERATE_GATEWAT_TOKEN
:
'/PandaCore/GCK/Basis/GenerateToken'
,
GENERATE_IOT_TOKEN
:
'cityinterface/rest/services.svc/generateGCKToken'
,
GENERATE_IOT_TOKEN
:
'cityinterface/rest/services.svc/generateGCKToken'
,
...
...
src/initConfig.js
View file @
7da1fe0d
...
@@ -58,7 +58,7 @@ export const initGlobalConfig = () => {
...
@@ -58,7 +58,7 @@ export const initGlobalConfig = () => {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
const
data
=
res
;
const
{
data
}
=
res
;
if
(
!
data
.
client
)
{
if
(
!
data
.
client
)
{
data
.
client
=
client
;
data
.
client
=
client
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment