We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f891202 commit e8837d1Copy full SHA for e8837d1
src/layout/components/AppMain.vue
@@ -16,7 +16,7 @@ export default {
16
return this.$store.state.tagsView.cachedViews
17
},
18
key() {
19
- return this.$route.fullPath
+ return this.$route.path
20
}
21
22
src/views/tab/index.vue
@@ -30,6 +30,18 @@ export default {
30
createdTimes: 0
31
32
33
+ watch: {
34
+ activeName(val) {
35
+ this.$router.push(`${this.$route.path}?tab=${val}`)
36
+ }
37
+ },
38
+ created() {
39
+ // init the default selected tab
40
+ const tab = this.$route.query.tab
41
+ if (tab) {
42
+ this.activeName = tab
43
44
45
methods: {
46
showCreatedTimes() {
47
this.createdTimes = this.createdTimes + 1
0 commit comments