westore
westore copied to clipboard
钉钉e应用 自定义组件 Component is not defined
`import create from '/util/create'
create({ ... })`
[WORKER] onerror Uncaught ReferenceError: Component is not defined
这是框架api差异导致的,可以参考个人重写的E应用版dd-store
@linjc 赞啊,我加到 westore 的 readme 里
钉钉的兼容问题,唯一就是需要把 组件 ready 回调改成 didMount 即可.
其它的像这些函数,都是兼容的. route setData Page Component getCurrentPages
目前已经在项目里使用过了,测试过没有问题.
@linjc 赞啊,我加到 westore 的 readme 里
哈哈,thx支持,后期会继续改进