Vue 刷新局部页面(不闪烁)

首先在App.vue组件写入





然后在局部组件中写入

inject:['reload'], //注入App里的reload方法

this.reload(); //调用

 

你可能感兴趣的:(vue,web前端,vue)