From 4e7421798daf4c01856a05ee5162faa3e3323336 Mon Sep 17 00:00:00 2001 From: zouyaoji <370681295@qq.com> Date: Wed, 28 Feb 2024 21:29:35 +0800 Subject: [PATCH] fix(components): :bug: cesium.VERSION being undefined, causing an error. --- packages/utils/cesium-helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/utils/cesium-helpers.ts b/packages/utils/cesium-helpers.ts index 879cb590..a8c8da67 100644 --- a/packages/utils/cesium-helpers.ts +++ b/packages/utils/cesium-helpers.ts @@ -1094,6 +1094,7 @@ export function heightToLevel(altitude: number) { } export function compareCesiumVersion(a, b, operator: CompareOperator = '>=') { + a = a || '1.6.7' return compare(a, b, operator) }