项目UI记录-01
1、VUE关闭当前标签页
this.$store.dispatch("tagsView/delView", this.$route);
2、刷新table页面(执行某一方法后需要刷新下tab页面)
reload(){
// 需要刷新的tab的路径
const currentView = '/mail/cfg'
this.$store.dispatch('tagsView/delCachedView', currentView).then(() => {
this.$nextTick(() => {
this.$router.replace({
path: '/redirect' + currentView
})
})
})
}
posted on 2022-08-20 13:12 zyp_java_net 阅读(48) 评论(0) 编辑 收藏 举报