Browse Source

modify AK

Yaohan Hu 6 years ago
parent
commit
cb6f6701e4
2 changed files with 4 additions and 2 deletions
  1. 3 1
      README.md
  2. 1 1
      public/index.html

+ 3 - 1
README.md

@@ -4,12 +4,14 @@
 
 ## 运行
 
+运行需知:首先去百度开放云平台申请自己的AK,申请方法见下面的**定位**
+
 ```cmd
 # dev
 npm install
 npm start
 
-# production
+# deploy
 npm run build
 npm install http-server -g
 http-server ./build -p 38083 -s -P http://www.msece.com

+ 1 - 1
public/index.html

@@ -20,7 +20,7 @@
       Learn how to configure a non-root public URL by running `npm run build`.
     -->
     <title>City Selector</title>
-    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TtdhnvKOhyEHHvQFFj1sBmmOWwAM21mG"></script>
+    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=your_ak"></script>
   </head>
   <body>
     <noscript>