增加主页

This commit is contained in:
2025-09-19 14:38:47 +08:00
parent 1e894b7700
commit 61764be51e
4 changed files with 367 additions and 48 deletions

View File

@@ -4,8 +4,9 @@ import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import App from './App.vue';
import DeviceList from './components/DeviceList.vue';
import Home from './components/Home.vue';
import DeviceList from './components/DeviceList.vue';
import PlanList from './components/PlanList.vue';
// 导入全局样式
import './assets/styles/main.css';
@@ -17,7 +18,8 @@ import * as Utils from './utils/helpers'; // 示例工具函数
// 配置路由
const routes = [
{ path: '/', component: Home },
{ path: '/devices', component: DeviceList }
{ path: '/devices', component: DeviceList },
{ path: '/plans', component: PlanList }
];
const router = createRouter({