diff --git a/src/router/modules/home.ts b/src/router/modules/home.ts index aec5455..77bf0e9 100644 --- a/src/router/modules/home.ts +++ b/src/router/modules/home.ts @@ -1,11 +1,11 @@ -const { VITE_HIDE_HOME } = import.meta.env; +const {VITE_HIDE_HOME} = import.meta.env; const Layout = () => import("@/layout/index.vue"); export default { path: "/", name: "Home", component: Layout, - redirect: "/welcome", + redirect: "/dashboard", meta: { icon: "homeFilled", title: "首页", @@ -13,13 +13,22 @@ export default { }, children: [ { - path: "/welcome", - name: "Welcome", - component: () => import("@/views/welcome/index.vue"), + path: "/dashboard", + name: "dashboard", + component: () => import("@/views/dashboard/dashboard.vue"), meta: { title: "首页", showLink: VITE_HIDE_HOME === "true" ? false : true } - } + }, + // { + // path: "/welcome", + // name: "Welcome", + // component: () => import("@/views/welcome/index.vue"), + // meta: { + // title: "首页", + // showLink: VITE_HIDE_HOME === "true" ? false : true + // } + // } ] } as RouteConfigsTable; diff --git a/src/views/dashboard/components/NumDataItem.vue b/src/views/dashboard/components/NumDataItem.vue new file mode 100644 index 0000000..63cf316 --- /dev/null +++ b/src/views/dashboard/components/NumDataItem.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/dashboard/dashboard.vue b/src/views/dashboard/dashboard.vue new file mode 100644 index 0000000..a412a62 --- /dev/null +++ b/src/views/dashboard/dashboard.vue @@ -0,0 +1,90 @@ + + +