diff --git a/src/assets/admin/css/home.css b/src/assets/admin/css/home.css
new file mode 100644
index 0000000..b1e22a6
--- /dev/null
+++ b/src/assets/admin/css/home.css
@@ -0,0 +1,48 @@
+* {
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ font-size: 14px;
+}
+
+a {
+ outline: none;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+ul,
+li {
+ list-style: none;
+}
+
+/*.dr-home */
+.dr-home {
+ display: flex;
+ flex-direction: column; /* 容器内元素从上至下排列 */
+ height: 100vh;
+}
+
+.dr-home .header {
+ display: flex;
+ height: 55px;
+ background: #393d49;
+}
+
+.dr-home .main {
+ display: flex;
+ height: calc(100vh - 55px); /* 减去 header 高度 */
+}
+
+.dr-home .main .side {
+ width: 200px;
+ background: #545c64;
+}
+
+.dr-home .main .content {
+ padding: 5px;
+ flex: 1;
+ overflow-y: auto;
+}
diff --git a/src/router/index.js b/src/router/index.js
index 2af7f10..59795eb 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,6 +1,10 @@
import { createRouter, createWebHistory } from "vue-router"
import {useAdminStore} from "@/stores/admin/admin.js";
const routes= [
+ {
+ path: "/", //http://localhost:5173/
+ redirect: "/admin" //重定向
+ },
{
path: "/login", // http://localhost:5173/login
component: () => import("@/views/admin/login.vue")
diff --git a/src/views/admin/home.vue b/src/views/admin/home.vue
index a88a518..63ecc0b 100644
--- a/src/views/admin/home.vue
+++ b/src/views/admin/home.vue
@@ -1,9 +1,23 @@
- 后台页面
+