update: v1.4.3-fix

This commit is contained in:
hamster1963 2024-11-21 01:00:30 +08:00
parent 5eddce9624
commit d8312642e4
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,9 @@ export async function Global({ countries = [] }: GlobalProps) {
const geoJson = JSON.parse(geoJsonString); const geoJson = JSON.parse(geoJsonString);
countries_alpha3.forEach((countryCode) => { countries_alpha3.forEach((countryCode) => {
const feature = geoJson.features.find((f: any) => f.properties.iso_a3 === countryCode); const feature = geoJson.features.find(
(f: any) => f.properties.iso_a3 === countryCode,
);
if (feature) { if (feature) {
// 获取国家的边界框 // 获取国家的边界框

View File

@ -1,6 +1,6 @@
{ {
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.4.3", "version": "1.4.3-fix",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3040", "dev": "next dev -p 3040",