电源控制前端调试通过

This commit is contained in:
2026-06-19 22:22:18 +08:00
parent 6f9d6ed0d6
commit add7f6c361
5 changed files with 72 additions and 3 deletions
+45
View File
@@ -0,0 +1,45 @@
import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import DeviceManagement from '../views/DeviceManagement.vue'
import DeviceTypeManagement from '../views/DeviceTypeManagement.vue'
import ServiceManagement from '../views/ServiceManagement.vue'
import InterfaceManagement from '../views/InterfaceManagement.vue'
import PowerControl from '../views/PowerControl.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/devices',
name: 'devices',
component: DeviceManagement
},
{
path: '/device-types',
name: 'device-types',
component: DeviceTypeManagement
},
{
path: '/services',
name: 'services',
component: ServiceManagement
},
{
path: '/interfaces',
name: 'interfaces',
component: InterfaceManagement
},
{
path: '/power-control',
name: 'power-control',
component: PowerControl
}
]
})
export default router