在做项目的时候,后端给的数据常常需要自己改造,有时候会遇到改造后的数据是你想得到的数据,但就是页面渲染不出来????这时候首先使用了强制刷新,正常情况下页面可以渲染出来,但当不起作用的时候,需要使用终极大招!!isRefer
一、使用 `this.$forceUpdate()` //强制更新
二、(1)初始化定义
`isRefer: true,`
(2)给需要重新加载的页面添加
`v-if="isRefer"`
(3)数据变化之后写上
this.isRefer = this.isRefer ? false : true
this.$nextTick(() => {
this.isRefer = this.isRefer ? false : true
})