Browse Source

[修改]修改高德key

master
邵佳豪 1 year ago
parent
commit
afe4caa415
  1. 2
      package.json
  2. 2
      proxy.config.json
  3. 4
      src/app/ui/basicinfo/basicinfo.component.ts
  4. 10
      src/index.html

2
package.json

@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.config.json --open --port 4000 ",
"start": "ng serve --proxy-config proxy.config.json --open --port 1831",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",

2
proxy.config.json

@ -1,6 +1,6 @@
{
"/api": {
"target": "http://39.106.78.171:9008",
"target": "http://183.194.244.232:8088/",
"secure": false,
"changeOrigin": true
}

4
src/app/ui/basicinfo/basicinfo.component.ts

@ -971,10 +971,6 @@ export class BasicinfoComponent implements OnInit {
//提交建筑信息
onSubmitBuildingInfo(value, item, key, invalid) {
// console.log(1,item)
// console.log(2,invalid)
// console.log(3,value)
// console.log(4,this.allunittype)
if (invalid) {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';

10
src/index.html

@ -1,5 +1,6 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>数据采集平台</title>
@ -8,8 +9,15 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href='./assets/icon/material-icons.css' rel="stylesheet">
</head>
<body>
<app-root></app-root>
</body>
<script src='https://webapi.amap.com/maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346'></script>
<script type="text/javascript">
window._AMapSecurityConfig = {
securityJsCode: '0afa0b144398727fad2ca06f5f7156b3'
}
</script>
<script src='https://webapi.amap.com/maps?v=2.0&key=17bb9b27e49451cde8f2e6655b11ff1a'></script>
</html>
Loading…
Cancel
Save