Vue - 强制刷新组件(销毁并重置)
<el-dialog :visible.sync="reportDialogVisible">
<Report :reportInfo="reportInfo" v-if="hackReset"></Report>
</el-dialog>
// 声明hackReset,利用true或者false实现重建或者销毁
this.hackReset = false;// 销毁组件
this.$nextTick(() => {
this.hackReset = true;// 重建组件
});