ant-design-vue-pro icon indicating copy to clipboard operation
ant-design-vue-pro copied to clipboard

求助 页面刷新怎么实现呀

Open ZhangTianyi-1998 opened this issue 3 years ago • 1 comments

Question (问题描述) How to use component s-table paging 2022-02-17_15-52

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.

ZhangTianyi-1998 avatar Feb 17 '22 07:02 ZhangTianyi-1998

想刷新整个页面的话是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'],

laiyidiedanchaofenba avatar Feb 22 '22 01:02 laiyidiedanchaofenba