Skip to content

Commit 0d5f65c

Browse files
LonHonsendya
authored andcommitted
Feat(Layout): 允许PageView以props方式生成tabs
1 parent dde01c1 commit 0d5f65c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/layouts/PageView.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export default {
7272
logo: {
7373
type: String,
7474
default: null
75+
},
76+
directTabs: {
77+
type: Object,
78+
default: null
7579
}
7680
},
7781
data () {
@@ -90,6 +94,7 @@ export default {
9094
})
9195
},
9296
mounted () {
97+
this.tabs = this.directTabs
9398
this.getPageMeta()
9499
},
95100
updated () {

0 commit comments

Comments
 (0)