Browse Source

返回操作时关闭当前页面

yuwenjun1997 2 years ago
parent
commit
8ed507b500
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/mixin/base.js

+ 1 - 0
src/mixin/base.js

@@ -4,6 +4,7 @@ const option = {
   methods: {
     // 后退
     navigateBack() {
+      this.$store.dispatch('tagsView/delView', this.$route)
       this.$router.go(-1)
     },
     // 跳转