// 碳足迹预警 import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ { path: '/carbonWarning', component: Layout, redirect: '/carbonWarning/warning', name: 'Dwarning', meta: { title: '碳足迹预警', icon: 'ep:key', auth: '/warning', }, children: [ { path: 'warning', name: 'Warning', component: () => import('@/views/warning/index.vue'), meta: { title: '碳足迹预警', auth: '/warning', sidebar: false, breadcrumb: true, activeMenu: '/carbonWarning', }, }, ], }, ] export default routes