完善数组判断处理
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
<el-main class="nopadding">
|
||||
<el-menu class="menu mainMenu" :default-active="page">
|
||||
<el-menu-item-group v-for="group in menu" :key="group.groupName" :title="group.groupName">
|
||||
<el-menu-item v-for="item in group.list" :key="item.component" :index="item.component" @click="openPage">
|
||||
<el-icon v-if="item.icon"><component :is="item.icon"/></el-icon>
|
||||
<template #title>
|
||||
<span>{{item.title}}</span>
|
||||
</template>
|
||||
</el-menu-item>
|
||||
<div v-for="item in group.list" :key="item.component">
|
||||
<el-menu-item v-authSetup="item.actions" :index="item.component" @click="openPage">
|
||||
<el-icon v-if="item.icon"><component :is="item.icon"/></el-icon>
|
||||
<template #title>
|
||||
<span>{{item.title}}</span>
|
||||
</template>
|
||||
</el-menu-item>
|
||||
</div>
|
||||
</el-menu-item-group>
|
||||
</el-menu>
|
||||
</el-main>
|
||||
@@ -53,12 +55,14 @@ export default {
|
||||
{
|
||||
icon: "sc-icon-MachineRoom",
|
||||
title: "机房配置",
|
||||
component: "account"
|
||||
component: "account",
|
||||
actions:'roomConfig'
|
||||
},
|
||||
{
|
||||
icon: "sc-icon-CostAllocation",
|
||||
title: "费用配置",
|
||||
component: "password"
|
||||
component: "password",
|
||||
actions:'costConfig'
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -68,12 +72,14 @@ export default {
|
||||
{
|
||||
icon: "sc-icon-DataSource",
|
||||
title: "数据源邮件设置",
|
||||
component: "mail"
|
||||
component: "mail",
|
||||
actions:'mailConfigSet'
|
||||
},
|
||||
{
|
||||
icon: "sc-icon-AgentMaintenance",
|
||||
title: "K3接口配置",
|
||||
component: "interface"
|
||||
component: "interface",
|
||||
actions:'k3ApiConfigSet'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user