|
|
|
@ -21,7 +21,38 @@
|
|
|
|
|
<body> |
|
|
|
|
<app-root></app-root> |
|
|
|
|
</body> |
|
|
|
|
<script src="https://webapi.amap.com/maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346"></script> |
|
|
|
|
<script src="https://webapi.amap.com/ui/1.1/main.js"></script> |
|
|
|
|
<script src="https://webapi.amap.com/maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script> |
|
|
|
|
<script src="/assets/ajaxhook/ajaxhook.min.js"></script> |
|
|
|
|
<script> |
|
|
|
|
ah.proxy({ |
|
|
|
|
onRequest: (config, handler) => { |
|
|
|
|
// console.log(config.url) |
|
|
|
|
if (config.url.toString().search('https://vdata.amap.com') != -1) { |
|
|
|
|
config.url = 'http://10.81.73.39:8000/web2' + config.url.split('vdata.amap.com/')[1]; |
|
|
|
|
console.log('web2',config.url) |
|
|
|
|
} else if (config.url.toString().search('http://restapi.amap.com') != -1) { |
|
|
|
|
config.url = 'http://10.81.73.39:8000/web3' + config.url.split('restapi.amap.com/')[1]; |
|
|
|
|
console.log('web3',config.url) |
|
|
|
|
} else if (config.url.toString().search('http://vector.amap.com') != -1) { |
|
|
|
|
config.url = 'http://10.81.73.39:8000/web4' + config.url.split('vector.amap.com/')[1]; |
|
|
|
|
console.log('web4',config.url) |
|
|
|
|
} else if (config.url.toString().search('http://lbs.amap.com') != -1) { |
|
|
|
|
config.url = 'http://10.81.73.39:8000/web5' + config.url.split('lbs.amap.com/')[1]; |
|
|
|
|
console.log('web5',config.url) |
|
|
|
|
} |
|
|
|
|
handler.next(config); |
|
|
|
|
}, |
|
|
|
|
onError: (err, handler) => { |
|
|
|
|
console.log(err.type) |
|
|
|
|
handler.next(err) |
|
|
|
|
}, |
|
|
|
|
onResponse: (response, handler) => { |
|
|
|
|
// console.log(response.response) |
|
|
|
|
handler.next(response) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
<script src="http://10.81.73.39:8000/web1maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script> |
|
|
|
|
<script src="http://10.81.73.39:8000/web1/ui/1.1/main.js"></script> |
|
|
|
|
<!-- <script src="https://webapi.amap.com/maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script> |
|
|
|
|
<script src="https://webapi.amap.com/ui/1.1/main.js"></script> --> |
|
|
|
|
</html> |
|
|
|
|