这是一个很诡异的问题,之前这个项目一直运行正常
<pointerRight ref="pointerRight" v-show="!show"></pointerRight>
<dyRight v-show="show" ref="dyRight"></dyRight>
在data里定义了一个show来控制这2个组件的显示,今天突然出问题了。show的值都正常,连使用监听另外给他定义一个值也没得反应。
<div v-show="!show"><pointerRight ref="pointerRight"></pointerRight></div>
<dyRight v-show="show" ref="dyRight"></dyRight>
最后只有加了一个div,在上面控制,就正常了。