mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-05 14:55:25 +00:00
Fix bugs: active side bar
This commit is contained in:
parent
56304db6fe
commit
856de3964f
@ -52,7 +52,11 @@ limitations under the License. -->
|
|||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-menu-item-group>
|
</el-menu-item-group>
|
||||||
</el-sub-menu>
|
</el-sub-menu>
|
||||||
<el-menu-item :index="String(menu.name)" @click="changePage(menu)" v-else>
|
<el-menu-item
|
||||||
|
:index="String(menu.name)"
|
||||||
|
@click="changePage(menu)"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
<el-icon class="menu-icons" :style="{ margin: '-10px 12px 0 0' }">
|
<el-icon class="menu-icons" :style="{ margin: '-10px 12px 0 0' }">
|
||||||
<router-link :to="menu.children[0].path" :exact="menu.meta.exact">
|
<router-link :to="menu.children[0].path" :exact="menu.meta.exact">
|
||||||
<Icon size="lg" :iconName="menu.meta.icon" />
|
<Icon size="lg" :iconName="menu.meta.icon" />
|
||||||
@ -113,7 +117,6 @@ const changePage = (menu: RouteRecordRaw) => {
|
|||||||
const filterMenus = (menus: any[]) => {
|
const filterMenus = (menus: any[]) => {
|
||||||
return menus.filter((d) => d.meta && !d.meta.notShow);
|
return menus.filter((d) => d.meta && !d.meta.notShow);
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scope>
|
<style lang="scss" scope>
|
||||||
|
Loading…
Reference in New Issue
Block a user