vue路由router从父页面跳转子页面,父页面隐藏
首页路由中{path: "/",meta: {title: "电子说明书",icon: "menu",hideInMenu: true,index: 0,showFooter: true//使用这个,显示隐藏},component:
·
首页路由中
{
path: "/",
meta: {
title: "电子说明书",
icon: "menu",
hideInMenu: true,
index: 0,
showFooter: true//使用这个,显示隐藏
},
component: () => import("~p/Order/Index"),
children: [
{
path: "add",
meta: {
title: "IHU管理",
icon: "edit",
hideInMenu: true,
index: 1,
showFooter: false
},
component: () => import("~p/Order/Add")
},]
}
在 / 页面
<div v-show="$route.meta.showFooter"> //在需要隐藏的div上加上这句
更多推荐
已为社区贡献4条内容
所有评论(0)