Skip to content

umi4的路由公共布局如何做? #11706

Answered by fz6m
yumo-mt asked this question in Q&A
Discussion options

You must be logged in to vote

你是这个路由就叫 公共的头部 吗,使用了 layout: {} 布局之后会自带一个全局 layout 在展示内容的区块上,当你又自己添加了 src/layouts/index 时,按照布局约定,就会额外再套一层你自己定义的 src/layout/index 布局,也就是有两层 layout 了,具体自己排查下吧。

如还有问题,需要给一个最小复现。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yumo-mt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants