From 782c2d6cc43baae683856b2139aa71dd1fb2da6d Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Sun, 26 Nov 2023 19:40:21 +0800 Subject: [PATCH] Bug Fixed --- .gitignore | 1 - README.md | 4 ++-- index.html | 1 - res/apikeys.js | 1 + res/app.js | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 res/apikeys.js diff --git a/.gitignore b/.gitignore index 8ec046e6..e43b0f98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ .DS_Store -res/apikeys.js diff --git a/README.md b/README.md index e3d3f282..4e369d7d 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ 几乎开箱即用。直接下载所有代码,放到你本地或服务器上就行,没啥额外步骤。 -如果你希望能够显示 IP 所在地的地图,则需要修改 `/res/apikeys.js` ,找到: +如果你希望能够显示 IP 所在地的地图,则需要修改 `app.js` ,在 `data` 部分,找到: ``` -var bingMap = ''; +bingMapAPIKEY: '', ``` 在这里添加你的 Bing Map API Key,添加后,首页的地图按钮就会自动变为可用状态。 diff --git a/index.html b/index.html index db9cb306..c372092f 100644 --- a/index.html +++ b/index.html @@ -358,7 +358,6 @@ - diff --git a/res/apikeys.js b/res/apikeys.js new file mode 100644 index 00000000..597dc0d4 --- /dev/null +++ b/res/apikeys.js @@ -0,0 +1 @@ +var bingMap = 'Am27Bsy1tM3G4a6CQZ10Sva7FaKgzsg527w_RB1M0TtB288Fnc99KfCmAm3TAFr0'; \ No newline at end of file diff --git a/res/app.js b/res/app.js index 8f597340..77c22329 100644 --- a/res/app.js +++ b/res/app.js @@ -2,7 +2,7 @@ new Vue({ el: '#app', data: { // 请在此处填写 Bing Maps API Key,申请是免费的 - bingMapAPIKEY: bingMap, + bingMapAPIKEY: 'Am27Bsy1tM3G4a6CQZ10Sva7FaKgzsg527w_RB1M0TtB288Fnc99KfCmAm3TAFr0', ipDataCards: [ { id: 'upai',