cocos_creator_mvvm_tools
cocos_creator_mvvm_tools copied to clipboard
範例 JSVMParentTest 裡 VMLable 取 VMParent 時會抱錯
在Creator 2.1.3 ,這範例VMLable 的 path *.name 執行時回出現兩個Error Log
- cant find VM from: * 2.Cant get VM:*
但最後還是Lable 還是有顯示 VMParent 裡 data.name 得職值
猜想是不是腳本執行時間序的問題
暂时没有复现这个问题,我再使用看看会不会发生这种情况。你可以尝试在VMParent 类上使用装饰器 @executionOrder(-1) 让其优先执行。
感謝