@ -143,8 +143,7 @@
width: 78px;
height: 78px;
&::before {
content: "";
.icon-wrap {
position: absolute;
z-index: 0;
display: block;
@ -170,8 +169,8 @@
position: relative;
margin: auto;
width: 64px;
height: 64px;
object-fit: cover;
}
@ -123,7 +123,7 @@ function cookApiDataItem(item) {
let allChildrenUrl = n2one(item.children)
.filter((i) => i.url != "")
.filter((i) => i.url != "" && i.showFlag == 1)
.map((i) => i.url);
console.log("))))))))))))", allChildrenUrl);
@ -132,6 +132,10 @@ function cookApiDataItem(item) {
item.url = allChildrenUrl[0];
// item.children.forEach((item) => {
// item.color = "#f00";
// return item;
// });
return item;
@ -22,10 +22,7 @@
@click="$store.state.sidebarFold = !$store.state.sidebarFold"
>
<svg
class="
icon-svg
aui-navbar__icon-menu aui-navbar__icon-menu--switch
"
class="icon-svg aui-navbar__icon-menu aui-navbar__icon-menu--switch"
aria-hidden="true"
<use xlink:href="#icon-outdent"></use>
@ -51,6 +48,7 @@
</el-menu-item>
<el-menu-item
v-show="menu.showFlag==1"
v-for="(menu, idx) in $store.state.sidebarMenuList"
:key="menu.id"
:menu="menu"
@ -169,7 +167,11 @@ export default {
(item) => item.meta.menuId === menuId
)[0];
if (route) {
this.$router.push({ name: route.name });
if (route.meta.iframeURL.endsWith("【跳转新页面】")) {
return window.open(route.meta.iframeURL.slice(0, -7));
} else {
this.$store.state.LevelOneMenuActiveName = menuId;
this.$store.state.sidebarActiveSubMenuList =
@ -1,6 +1,7 @@
<template>
<div v-if="menu.showFlag">
<el-submenu
v-show="menu.showFlag == 1"
v-if="menu.children && menu.children.length >= 1"
:index="menu.id"
ref="subMenu"
@ -13,6 +14,7 @@
<span>{{ menu.name }}</span>
</template>
<sub-menu
v-show="item.showFlag == 1"
v-for="item in menu.children"
:key="item.id"
:menu="item"
@ -51,7 +53,7 @@ export default {
window.open(route.meta.iframeURL.slice(0, -7));
this.$router.push({ name: route.name })
},