This commit is contained in:
Fine 2022-09-20 15:27:41 +08:00
parent e50d283dce
commit a187ed61f9
2 changed files with 1 additions and 4 deletions

View File

@ -31,9 +31,6 @@ export const routesAlarm: Array<RouteRecordRaw> = [
{
path: "/alerting",
name: "Alarm",
meta: {
exact: false,
},
component: () =>
import(/* webpackChunkName: "alerting" */ "@/views/Alarm.vue"),
},

View File

@ -20,7 +20,7 @@ import Layout from "@/layout/Index.vue";
function layerDashboards() {
const routes = LayerJson.map((item: any) => {
item.component = Layout;
if (item.meta.hasGroup) {
if (item.children) {
item.children = item.children.map((d: any) => {
d.component = () =>
import(/* webpackChunkName: "layer" */ "@/views/Layer.vue");