Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
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
郭铭瑶
huamu
Commits
2f2f4a7e
Commit
2f2f4a7e
authored
Sep 23, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图替换域名为ip
parent
6e9bc41f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
useInitMap.ts
src/hooks/useInitMap.ts
+13
-0
vite.config.js
vite.config.js
+4
-1
No files found.
src/hooks/useInitMap.ts
View file @
2f2f4a7e
...
...
@@ -70,6 +70,19 @@ export default async function useInitMap(el: HTMLElement, camera: any) {
esriConfig
.
request
.
useIdentity
=
false
esriConfig
.
request
.
interceptors
.
push
({
urls
:
'https://changsanjiao.shsmi.com/'
,
/*
* 在请求发出去之前,把请求中的机器名改成ip
* */
before
:
function
(
params
:
any
)
{
params
.
url
=
params
.
url
.
replace
(
'https://changsanjiao.shsmi.com'
,
'http://10.108.3.48'
,
)
},
})
esriConfig
.
request
.
interceptors
.
push
({
urls
:
'https://changsanjiao.shsmi.com/'
,
...
...
vite.config.js
View file @
2f2f4a7e
...
...
@@ -29,5 +29,8 @@ export default defineConfig({
},
},
},
base
:
'/statics/huamu_party_building_3d/'
,
base
:
process
.
env
.
NODE_ENV
===
'production'
?
'/statics/huamu_party_building_3d/'
:
'./'
,
})
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