Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新js引用 #11

Open
vector9584 opened this issue Oct 18, 2023 · 0 comments
Open

更新js引用 #11

vector9584 opened this issue Oct 18, 2023 · 0 comments

Comments

@vector9584
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/hexo-tag-echarts3/template.html b/node_modules/hexo-tag-echarts3/template.html
index aeb484e..a3d0b47 100644
--- a/node_modules/hexo-tag-echarts3/template.html
+++ b/node_modules/hexo-tag-echarts3/template.html
@@ -1,5 +1,13 @@
 <div id="<%- id %>" style="width: <%- width %>;height: <%- height %>px;margin: 0 auto"></div>
-<script src="https://cdn.bootcss.com/echarts/3.8.0/echarts.common.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"></script>
+<script type="text/javascript" src="https://api.map.baidu.com/getscript?v=2.0&amp;ak=rA4hkVP29Z2LB35VfAtgqmiC7iFBFl6Q&amp;services=&amp;t=20230906113724"></script>
+<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&amp;ak=rA4hkVP29Z2LB35VfAtgqmiC7iFBFl6Q&amp;__ec_v__=20190126"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/dataTool.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat/dist/ecStat.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl/dist/echarts-gl.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
 <script type="text/javascript">
         // 基于准备好的dom,初始化echarts实例
         var myChart = echarts.init(document.getElementById('<%- id %>'));

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant