ant-design-vue-pro
ant-design-vue-pro copied to clipboard
求助 页面刷新怎么实现呀
Question (问题描述)
How to use component s-table
paging
Describe the solution you'd like (你期待的是什么?) A clear and concise description of what you want to happen. 想实现刷新页面 Additional context(附加信息) Add any other context or screenshots about the feature request here.
想刷新整个页面的话是location.reload(),想刷新 主界面的话是在APP.vue 里
<router-view v-if="isRouterAlice" />
provide() { return { reload:this.reload } }, data () { return { locale: zhCN, isRouterAlice:true } },
reload() { this.isRouterAlice =false this.$nextTick(function() { this.isRouterAlice =true }) }
然后在BasicLayout里
inject: ['reload'],