cocos_creator_mvvm_tools icon indicating copy to clipboard operation
cocos_creator_mvvm_tools copied to clipboard

範例 JSVMParentTest 裡 VMLable 取 VMParent 時會抱錯

Open PeiCinh opened this issue 5 years ago • 2 comments

在Creator 2.1.3 ,這範例VMLable 的 path *.name 執行時回出現兩個Error Log

  1. cant find VM from: * 2.Cant get VM:*

但最後還是Lable 還是有顯示 VMParent 裡 data.name 得職值

猜想是不是腳本執行時間序的問題

PeiCinh avatar Oct 01 '19 01:10 PeiCinh

暂时没有复现这个问题,我再使用看看会不会发生这种情况。你可以尝试在VMParent 类上使用装饰器 @executionOrder(-1) 让其优先执行。

wsssheep avatar Nov 22 '19 03:11 wsssheep

感謝

PeiCinh avatar Nov 24 '19 08:11 PeiCinh