Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cd Comprehensive Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cityLevel
Cd Comprehensive Web
Commits
c9301b2d
Commit
c9301b2d
authored
1 month ago
by
汤绍坚
Browse files
Options
Downloads
Patches
Plain Diff
tsj: 修改cooglMap js代理的问题
parent
49a205d9
Branches
Branches containing commit
Tags
city_1.0.5-arm
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/nginx.conf
+16
-16
16 additions, 16 deletions
config/nginx.conf
src/pages/Home_v_2504/components/MapContainer/DistrictMapCustomized/loadArea-1.3.1.js
+4
-2
4 additions, 2 deletions
...ents/MapContainer/DistrictMapCustomized/loadArea-1.3.1.js
with
20 additions
and
18 deletions
config/nginx.conf
+
16
−
16
View file @
c9301b2d
...
@@ -28,22 +28,22 @@
...
@@ -28,22 +28,22 @@
proxy_redirect
default
;
proxy_redirect
default
;
}
}
location
/region
{
#
location /region {
rewrite
^/region/(.*)
$
/kelan/
$1
break
;
#
rewrite ^/region/(.*)$ /kelan/$1 break;
add_header
Access-Control-Allow-Origin
*
;
#
add_header Access-Control-Allow-Origin *;
add_header
Access-Control-Allow-Methods
'GET,
POST,
OPTIONS'
;
#
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header
Access-Control-Allow-Headers
'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'
;
#
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_pass
https://10.1.174.34:13600
;
#
proxy_pass https://10.1.174.34:13600;
proxy_redirect
default
;
#
proxy_redirect default;
}
#
}
location
/grid-range
{
#
location /grid-range {
rewrite
^/grid-range/(.*)
$
/grid-range/
$1
break
;
#
rewrite ^/grid-range/(.*)$ /grid-range/$1 break;
add_header
Access-Control-Allow-Origin
*
;
#
add_header Access-Control-Allow-Origin *;
add_header
Access-Control-Allow-Methods
'GET,
POST,
OPTIONS'
;
#
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header
Access-Control-Allow-Headers
'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'
;
#
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_pass
https://10.1.174.34:13600
;
#
proxy_pass https://10.1.174.34:13600;
proxy_redirect
default
;
#
proxy_redirect default;
}
#
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/Home_v_2504/components/MapContainer/DistrictMapCustomized/loadArea-1.3.1.js
+
4
−
2
View file @
c9301b2d
...
@@ -8,6 +8,8 @@ const CooGL = window.CooGL;
...
@@ -8,6 +8,8 @@ const CooGL = window.CooGL;
// 调试开关
// 调试开关
const
DEBUG
=
false
;
const
DEBUG
=
false
;
const
IS_PROD
=
process
.
env
.
NODE_ENV
===
'
production
'
?
true
:
false
;
// API基础URL配置
// API基础URL配置
const
API_BASE_URLS
=
{
const
API_BASE_URLS
=
{
// 直接地址
// 直接地址
...
@@ -17,8 +19,8 @@ const API_BASE_URLS = {
...
@@ -17,8 +19,8 @@ const API_BASE_URLS = {
},
},
// 相对地址(代理)
// 相对地址(代理)
PROXY
:
{
PROXY
:
{
REGION_API
:
'
/region/coogl/api
'
,
REGION_API
:
IS_PROD
?
'
/cd-comprehensive/region/coogl/api
'
:
'
/region/coogl/api
'
,
GRID_RANGE_API
:
'
/grid-range
'
GRID_RANGE_API
:
IS_PROD
?
'
/cd-comprehensive/grid-range
'
:
'
/grid-range
'
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment