首页路由中

  {
            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上加上这句
Logo

前往低代码交流专区

更多推荐