增加主页
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user