| | |
| | | :default-active="activeMenu"
|
| | | mode="horizontal"
|
| | | @select="handleSelect"
|
| | | :ellipsis="false"
|
| | | >
|
| | | <template v-for="(item, index) in topMenus">
|
| | | <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"
|
| | |
| | | if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
|
| | | const tmpPath = path.substring(1, path.length);
|
| | | activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
|
| | | appStore.toggleSideBarHide(false);
|
| | | if (!route.meta.link) {
|
| | | appStore.toggleSideBarHide(false);
|
| | | }
|
| | | } else if(!route.children) {
|
| | | activePath = path;
|
| | | appStore.toggleSideBarHide(true);
|