| | |
| | | <script>
|
| | | import ScrollPane from './ScrollPane'
|
| | | import path from 'path'
|
| | | import Global from "@/layout/components/global.js";
|
| | |
|
| | | export default {
|
| | | components: { ScrollPane },
|
| | |
| | | })
|
| | | })
|
| | | })
|
| | | Global.$emit("removeCache", "refreshSelectedTag", this.selectedTag);
|
| | | },
|
| | | closeSelectedTag(view) {
|
| | | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
|
| | |
| | | this.toLastView(visitedViews, view)
|
| | | }
|
| | | })
|
| | | Global.$emit("removeCache", "closeSelectedTag", view);
|
| | | },
|
| | | closeOthersTags() {
|
| | | this.$router.push(this.selectedTag)
|
| | | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
|
| | | this.moveToCurrentTag()
|
| | | })
|
| | | Global.$emit("removeCache", "closeOthersTags", this.selectedTag);
|
| | | },
|
| | | closeAllTags(view) {
|
| | | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => {
|
| | |
| | | }
|
| | | this.toLastView(visitedViews, view)
|
| | | })
|
| | | Global.$emit("removeCache", "closeAllTags");
|
| | | },
|
| | | toLastView(visitedViews, view) {
|
| | | const latestView = visitedViews.slice(-1)[0]
|