diff --git a/Yi.BBS.Vue3/src/components/echars/VisitsLineChart.vue b/Yi.BBS.Vue3/src/components/echars/VisitsLineChart.vue
deleted file mode 100644
index c79192d4..00000000
--- a/Yi.BBS.Vue3/src/components/echars/VisitsLineChart.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
diff --git a/Yi.BBS.Vue3/src/router/index.js b/Yi.BBS.Vue3/src/router/index.js
index efd0a79d..08366d10 100644
--- a/Yi.BBS.Vue3/src/router/index.js
+++ b/Yi.BBS.Vue3/src/router/index.js
@@ -41,7 +41,7 @@ const router = createRouter({
{
name: "index",
path: "/index",
- component: () => import("../views/Index.vue"),
+ component: () => import("../views/home/Index.vue"),
},
{
name: "article",
diff --git a/Yi.BBS.Vue3/src/views/Index.vue b/Yi.BBS.Vue3/src/views/home/Index.vue
similarity index 86%
rename from Yi.BBS.Vue3/src/views/Index.vue
rename to Yi.BBS.Vue3/src/views/home/Index.vue
index 17b073a3..3deb7c0c 100644
--- a/Yi.BBS.Vue3/src/views/Index.vue
+++ b/Yi.BBS.Vue3/src/views/home/Index.vue
@@ -54,7 +54,7 @@
-
+
@@ -99,22 +99,25 @@
diff --git a/Yi.BBS.Vue3/src/views/home/components/VisitsLineChart.vue b/Yi.BBS.Vue3/src/views/home/components/VisitsLineChart.vue
new file mode 100644
index 00000000..8fcece6e
--- /dev/null
+++ b/Yi.BBS.Vue3/src/views/home/components/VisitsLineChart.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
diff --git a/Yi.BBS.Vue3/src/views/home/hooks/echartsConfig.js b/Yi.BBS.Vue3/src/views/home/hooks/echartsConfig.js
new file mode 100644
index 00000000..e6d23ac4
--- /dev/null
+++ b/Yi.BBS.Vue3/src/views/home/hooks/echartsConfig.js
@@ -0,0 +1,81 @@
+export const statisticsEcharts = {
+ grid: {
+ top: "10%",
+ left: "4%",
+ right: "4%",
+ bottom: "5%",
+ containLabel: true,
+ },
+ tooltip: {
+ trigger: "axis",
+ },
+ xAxis: {
+ show: false,
+ type: "category",
+ data: [],
+ axisLine: {
+ lineStyle: {
+ color: "#999",
+ },
+ },
+ },
+ yAxis: [
+ {
+ type: "value",
+ splitNumber: 4,
+ splitLine: {
+ lineStyle: {
+ type: "dashed",
+ color: "#DDD",
+ },
+ },
+ axisLine: {
+ show: false,
+ lineStyle: {
+ color: "#333",
+ },
+ },
+ nameTextStyle: {
+ color: "#999",
+ },
+ splitArea: {
+ show: false,
+ },
+ },
+ ],
+ series: {
+ name: "访问量",
+ type: "line",
+ data: [],
+ lineStyle: {
+ normal: {
+ width: 5,
+ color: {
+ type: "linear",
+ colorStops: [
+ {
+ offset: 0,
+ color: "#a0cfff", // 浅蓝色,0% 处的颜色
+ },
+ {
+ offset: 1,
+ color: "#0047AB", // 深蓝色,100% 处的颜色
+ },
+ ],
+ globalCoord: false, // 缺省为 false
+ },
+ shadowColor: "rgba(72,216,191, 0.3)",
+ shadowBlur: 10,
+ shadowOffsetY: 20,
+ },
+ },
+ itemStyle: {
+ normal: {
+ color: "#fff",
+ borderWidth: 10,
+ borderColor: "#A9F387",
+ },
+ },
+ smooth: true,
+ },
+};