From 15138a2ae174a53f3f4a1b319cd7659781a696e9 Mon Sep 17 00:00:00 2001 From: ‘chensiAb’ <‘chenchenco03@163.com’> Date: Thu, 10 Apr 2025 10:31:24 +0800 Subject: [PATCH] style:地图样式微调 --- forms/chinaArea/ChinaLocations.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/forms/chinaArea/ChinaLocations.js b/forms/chinaArea/ChinaLocations.js index 3144299..ee602ce 100644 --- a/forms/chinaArea/ChinaLocations.js +++ b/forms/chinaArea/ChinaLocations.js @@ -27,7 +27,7 @@ success: response => { locationRes = response.data; readyCallbacks.forEach(callback => callback()); - } + }, }); export class ChinaLocations { @@ -213,9 +213,11 @@ if (typeof regions === 'string') { regions = regions.split(','); } - if (!regions || regions.length === 0 || !regions[0]) { + if (!regions || regions.length === 0 || !regions[0] || !regions[1]) { callback(''); + return; } + // 中文转编码 if (!/^\d+$/.test(regions[0])) { this.getRegionCodes(regions, regionsCode => { this.getRegionsArea(regionsCode, callback); -- Gitblit v1.9.1