vue项目中实现局部组件刷新

vue中局部组件刷新,可使用 provide / inject方法,在App.vue中添加刷新方法,路由初始状态是显示的javascript <template> <router-view v-if="isRouterAlive"></router-view> </template> <script> export default { provide () { return
相关文章
相关标签/搜索