| | |
| | | },
|
| | | isFirstView() {
|
| | | try {
|
| | | return this.selectedTag.fullPath === this.visitedViews[1].fullPath || this.selectedTag.fullPath === '/index'
|
| | | return this.selectedTag.fullPath === '/index' || this.selectedTag.fullPath === this.visitedViews[1].fullPath
|
| | | } catch (err) {
|
| | | return false
|
| | | }
|
| | |
| | | const { name } = this.$route
|
| | | if (name) {
|
| | | this.$store.dispatch('tagsView/addView', this.$route)
|
| | | if (this.$route.meta.link) {
|
| | | this.$store.dispatch('tagsView/addIframeView', this.$route)
|
| | | }
|
| | | }
|
| | | return false
|
| | | },
|
| | |
| | | },
|
| | | refreshSelectedTag(view) {
|
| | | this.$tab.refreshPage(view);
|
| | | if (this.$route.meta.link) {
|
| | | this.$store.dispatch('tagsView/delIframeView', this.$route)
|
| | | }
|
| | | },
|
| | | closeSelectedTag(view) {
|
| | | this.$tab.closePage(view).then(({ visitedViews }) => {
|