Replies: 1 comment 1 reply
-
是的哈,尽量像vue-cesium-demo 那样把业务组件都放vc-viewer下就没这种问题了。 如果确实不想放进去,那目前使用 useVueCesium 的地方要在 vc-viewer 的 create生命周期之后才能获取到哈。后面看看能不能优化下! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`
<script setup lang="ts"> import cs from '@/components/cs/cs.vue' import { useVueCesium } from 'vue-cesium' import { createCircle } from '../cs/lib/warning/createCirlcle' const $vc = useVueCesium('c-container') $vc.creatingPromise.then((res) => { console.log(res) //此时res为undefined,页面能正常显示 }) </script> <style scoped></style>`
Beta Was this translation helpful? Give feedback.
All reactions