From 3165ac07633b7ca2d76ad5263ba911c56d64c222 Mon Sep 17 00:00:00 2001
From: wcq <744800102@qq.com>
Date: Mon, 21 Aug 2023 17:05:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=B0=E9=9C=80=E6=B1=82?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/modules/home.ts | 21 +++--
.../dashboard/components/NumDataItem.vue | 11 +++
src/views/dashboard/dashboard.vue | 90 +++++++++++++++++++
3 files changed, 116 insertions(+), 6 deletions(-)
create mode 100644 src/views/dashboard/components/NumDataItem.vue
create mode 100644 src/views/dashboard/dashboard.vue
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 @@
+
+
+
+
+
{{ item }}
+
{{ key }}
+
+
+
+
+
+
+