解决方法:

给子组件加上一个key值

:key="timer"

在data中加上timer

timer:' '

刷新子组件传的值的话在方法中加上

this.timer = new Date().getTime()
Logo

前往低代码交流专区

更多推荐