mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
fix:fixed view tags bug
This commit is contained in:
parent
dec160fd1e
commit
2ec9fe74a8
@ -23,7 +23,7 @@ export default {
|
||||
methods: {
|
||||
closeViewTags(view, $event) {
|
||||
this.$store.dispatch('delVisitedViews', view).then((views) => {
|
||||
if (this.isActive(view.path)) {
|
||||
if (this.isActive(view)) {
|
||||
const latestView = views.slice(-1)[0]
|
||||
if (latestView) {
|
||||
this.$router.push(latestView.path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user