更改文件路径

This commit is contained in:
gcw_yTjNWok9
2025-12-18 14:02:38 +08:00
parent 12cf936916
commit e3ee78b9f4
3 changed files with 4 additions and 377 deletions

View File

@@ -10,13 +10,13 @@ import * as echarts from 'echarts'
*/
export const loadWorldMap = async () => {
try {
// 第一优先:从目录加载原始世界地图数据ECharts压缩格式
await import('/world.js')
// 第一优先:从components目录加载原始世界地图数据ECharts压缩格式
await import('../views/Jyh/security/components/world.js')
// world.js 文件会自动注册地图,无需手动处理
console.log('World map loaded from root world.js file (ECharts compressed format)')
console.log('World map loaded from components world.js file (ECharts compressed format)')
return true
} catch (error) {
console.warn('Failed to load world map from root world.js file:', error)
console.warn('Failed to load world map from components world.js file:', error)
}