vue强制刷新子组件到初始状态

<edit :tableData="childData" ref="child" v-if="hackReset"></edit>
methods: {
            open() {
                this.hackReset = false
                this.$nextTick(() => {
                    this.hackReset = true
                })
            },
}

 

posted @ 2020-10-16 10:28  郑正正  阅读(399)  评论(0编辑  收藏  举报
Live2D