Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix[TagsView]: fixed toLastView bug
  • Loading branch information
PanJiaChen committed Oct 8, 2019
commit 43a596d5d3be3de45610b85a65b149e54ed54b20
2 changes: 1 addition & 1 deletion src/layout/components/TagsView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default {
toLastView(visitedViews, view) {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
this.$router.push(latestView)
this.$router.push(latestView.fullPath)
} else {
// now the default is to redirect to the home page if there is no tags-view,
// you can adjust it according to your needs.
Expand Down