From 09941f2834be5894f316ccbf964774dd9b6b06e4 Mon Sep 17 00:00:00 2001 From: Dimples_YJ <2890841438@qq.com> Date: Tue, 22 Apr 2025 10:32:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(main):=20=E6=9B=B4=E6=96=B0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=20=E5=B0=86=E7=89=88=E6=9C=AC=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BB=8E=20GitHub=20=E6=94=B9=E4=B8=BA=20npmjs=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E8=8E=B7=E5=8F=96=E6=9C=80=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/main.js b/src/script/main.js index d360e89..00317c0 100644 --- a/src/script/main.js +++ b/src/script/main.js @@ -10,8 +10,8 @@ $(".action-button").click(function () { }); function getVersion() { - $.get('https://raw.githubusercontent.com/maptalks/maptalks.js/master/package.json', function(result){ - $('.secondary-text').text('version: ' + result.version); + $.get('https://registry.npmjs.org/maptalks-gl', function(result){ + $('.secondary-text').text('version: ' + result['dist-tags'].latest); }, 'json'); }