h5it
<div class="customerdetails_tabs" v-if="isRouterAlive"></div>

export default {
    provide(){
        return{
            reload:this.reload
        }
    },
 data() {
      return {
         isRouterAlive:true,
       }
    },

    methods: {
        reload(){
             this.isRouterAlive=false;
             this.$nextTick(function(){
                 this.isRouterAlive=true;
             })
        }
   }
} 
 需要局部组件刷新的时候直接调用reload()方法就可以

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-12-29
  • 2021-09-22
  • 2021-11-06
  • 2021-12-02
  • 2021-11-04
  • 2021-11-04
  • 2021-11-04
猜你喜欢
  • 2021-10-24
  • 2021-11-30
  • 2021-12-29
  • 2021-07-04
  • 2021-11-04
  • 2021-04-18
  • 2021-11-04
相关资源
相似解决方案