Skip to content

_earth不会被Vue代理 #2

@Minhom

Description

@Minhom

Earth和Cesium的相关变量放在vue中,必须使用下划线作为前缀!
以_earth为例,在声明 _earth 的组件(比如是EarthComp.vue)中,如果存在子组件A.vue,A.vue需要用到_earth,但通过(:earth=_earth)的方式将_earth传到子组件,子组件无法接收到_earth。
请问有什么好的解决方案吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions