diff --git a/src/App.vue b/src/App.vue index 4b21477c..812dc837 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,20 +1,6 @@ @@ -24,35 +10,8 @@ export default { }; - \ No newline at end of file + diff --git a/src/components/PlanList.vue b/src/components/PlanList.vue new file mode 100644 index 00000000..7def4c43 --- /dev/null +++ b/src/components/PlanList.vue @@ -0,0 +1,200 @@ + + + + + \ No newline at end of file diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue new file mode 100644 index 00000000..9ddf281a --- /dev/null +++ b/src/layouts/MainLayout.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index a7fc22ab..d7f3b121 100644 --- a/src/main.js +++ b/src/main.js @@ -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({