import { initCellLocalPathFromServer } from '@/core/utils/cell/cellLocalInit'; import { initOfflineMapDirFromServer } from '@/core/utils/map/offlineMapInit'; export const OPEN_SETTING_DRAWER_EVENT = 'layout-setting:open-drawer'; let globalCaseConfigInitPromise: Promise | null = null; /** * 初始化案件级全局配置:离线地图目录、基站包路径都从后端配置读取。 * *

Web 化后不再通过 Electron 读写本机配置文件,服务端配置由运维通过 * {@code /sys/mapLocal}、{@code /sys/cellLocal} 或 {@code QingJian/conf/c5e503ad.json} 设置。 */ export function initGlobalCaseConfig() { if (!globalCaseConfigInitPromise) { globalCaseConfigInitPromise = Promise.all([initOfflineMapDirFromServer(), initCellLocalPathFromServer()]) .then(() => undefined) .catch(() => undefined); } return globalCaseConfigInitPromise; }