Merge branch 'main' into cloudflare

This commit is contained in:
hamster1963 2024-11-21 01:00:46 +08:00
commit eb877631bd
3 changed files with 5 additions and 184 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.id === countryCode); const feature = geoJson.features.find(
(f: any) => f.properties.iso_a3 === countryCode,
);
if (feature) { if (feature) {
// 获取国家的边界框 // 获取国家的边界框

File diff suppressed because one or more lines are too long

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",