Skip to content

Commit

Permalink
Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Nov 26, 2023
1 parent d876e69 commit 782c2d6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.DS_Store
res/apikeys.js
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

几乎开箱即用。直接下载所有代码,放到你本地或服务器上就行,没啥额外步骤。

如果你希望能够显示 IP 所在地的地图,则需要修改 `/res/apikeys.js` ,找到:
如果你希望能够显示 IP 所在地的地图,则需要修改 `app.js` ,在 `data` 部分,找到:

```
var bingMap = '';
bingMapAPIKEY: '',
```

在这里添加你的 Bing Map API Key,添加后,首页的地图按钮就会自动变为可用状态。
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ <h5 class="modal-title" id="IPCheck">IP 查询</h5>

<!-- 引入 Vue.js -->
<script src="res/vue.js"></script>
<script src="res/apikeys.js"></script>
<script src="res/app.js"></script>


Expand Down
1 change: 1 addition & 0 deletions res/apikeys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var bingMap = 'Am27Bsy1tM3G4a6CQZ10Sva7FaKgzsg527w_RB1M0TtB288Fnc99KfCmAm3TAFr0';
2 changes: 1 addition & 1 deletion res/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ new Vue({
el: '#app',
data: {
// 请在此处填写 Bing Maps API Key,申请是免费的
bingMapAPIKEY: bingMap,
bingMapAPIKEY: 'Am27Bsy1tM3G4a6CQZ10Sva7FaKgzsg527w_RB1M0TtB288Fnc99KfCmAm3TAFr0',
ipDataCards: [
{
id: 'upai',
Expand Down

0 comments on commit 782c2d6

Please sign in to comment.