mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-02 10:57:24 +08:00
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
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 {
|
|
path: "/",
|
|
name: "Home",
|
|
component: Layout,
|
|
redirect: "/welcome",
|
|
meta: {
|
|
icon: "homeFilled",
|
|
title: $t("menus.hshome"),
|
|
rank: home
|
|
},
|
|
children: [
|
|
{
|
|
path: "/welcome",
|
|
name: "Welcome",
|
|
component: () => import("@/views/welcome/index.vue"),
|
|
meta: {
|
|
title: $t("menus.hshome"),
|
|
showLink: VITE_HIDE_HOME === "true" ? false : true
|
|
}
|
|
}
|
|
]
|
|
} as RouteConfigsTable;
|