记录:点击按钮,关闭当前页面及动态导航标签
// 返回
goBack(){
// this.$router.go(-1)
// this.$router.push({path: '/merchant/index'});
this.$modal.confirm("确认是否关闭当前页面")
.then(() => {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.replace({ path: "/merchant/index" }); // 关闭之后要返回的页面
})
}
参考文档:http://doc.ruoyi.vip/ruoyi-vue/document/qdsc.html#modal%E5%AF%B9%E8%B1%A1