若依前端使用随笔


1.关闭当前标签页面,并跳转到上一次页面

this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
this.$router.push(this.$store.state.tagsView.visitedViews[this.$store.state.tagsView.visitedViews.length-1].path)

 2.标签激活时 activated 方法

tab标签切换时会激活activated方法
activated: function() { console.log("我被刷新了。。。。。。"); this.getList(); //重新获取列表数据 }

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM