整理代码!

This commit is contained in:
2023-03-24 15:11:47 +08:00
parent bee1061e20
commit 7dbd48152f
14 changed files with 119 additions and 80 deletions

View File

@@ -38,7 +38,7 @@ const routes = [
title: "总览",
icon: "house",
},
component: ()=> import("../layout/Index.vue"),
component: ()=> import( "../layout/Index.vue" ),
children:[
{
path:"/desktop",
@@ -47,7 +47,7 @@ const routes = [
title:"工作台",
icon: "house",
},
component: ()=> import("../views/Desktop.vue"),
component: ()=> import( "../views/Desktop.vue" ),
},
],
},
@@ -59,7 +59,7 @@ const routes = [
title:"数据管理",
icon: "document",
},
component: ()=> import("../layout/Index.vue"),
component: ()=> import( "../layout/Index.vue" ),
children:[
{
path:"/staff_data",
@@ -68,7 +68,7 @@ const routes = [
title:"坐席管理",
icon: "user",
},
component: ()=> import("../views/StaffManagement.vue"),
component: ()=> import( "../views/StaffManagement.vue" ),
},
{
path:"/archievement_data",
@@ -77,7 +77,7 @@ const routes = [
title:"数据管理",
icon: "document",
},
component: ()=> import("../views/DataManagement.vue"),
component: ()=> import( "../views/DataManagement.vue" ),
},
],
},
@@ -104,12 +104,12 @@ function hasOnlyChild( children )
return false;
}
const routes = children.filter((item)=>
const routes = children.filter(( item )=>
{
return !item.hidden;
});
if ( routes.length === 1)
if ( routes.length === 1 )
{
return true;
}