feat: 可配置首页菜单显示与隐藏 (#539)

* feat: 可配置首页显示与隐藏
This commit is contained in:
RealityBoy
2023-05-05 22:55:12 +08:00
committed by GitHub
parent d49b23e8f9
commit 9d0c3f305d
19 changed files with 4850 additions and 2053 deletions

View File

@@ -1,5 +1,6 @@
import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");
export default {
@@ -18,7 +19,8 @@ export default {
name: "Welcome",
component: () => import("@/views/welcome/index.vue"),
meta: {
title: $t("menus.hshome")
title: $t("menus.hshome"),
showLink: VITE_HIDE_HOME === "true" ? false : true
}
}
]

View File

@@ -16,8 +16,7 @@ export default [
path: "/redirect",
component: Layout,
meta: {
icon: "homeFilled",
title: $t("menus.hshome"),
title: $t("status.hsLoad"),
showLink: false,
rank: 102
},