Skip to content

Commit

Permalink
fix(components): 🐛 reports an error on the supermap platform
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Oct 23, 2023
1 parent 32f5265 commit fd9cbbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/providers/supermap/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2023-07-27 21:07:48
* @LastEditTime: 2023-10-23 14:47:29
* @LastEditors: zouyaoji 370681295@qq.com
* @Description:
* @FilePath: \vue-cesium@next\packages\components\providers\supermap\index.ts
Expand Down Expand Up @@ -51,7 +51,9 @@ export default defineComponent({
}
const options = providersState.transformProps(props)
const provider = new Cesium.SuperMapImageryProvider(options)
await provider.init()
if (!Cesium.SuperMapVersion) {
await provider.init()
}
return provider
}
return () => createCommentVNode(kebabCase(instance.proxy?.$options.name || ''))
Expand Down

0 comments on commit fd9cbbb

Please sign in to comment.