Element: The [Bug Report] NavMenu navigation menu state has not changed during the routing jump

Created on 11 Oct 2017  ·  3Comments  ·  Source: ElemeFE/element

Element UI version

1.4.6

OS/Browsers version

window chrome 61

Vue version

2.4.4

Reproduction Link

https://jsfiddle.net/niefee/ey37a10s/

Steps to reproduce

在页面内跳转到导航菜单的某个路由,但active选项没有改变,只有点击导航菜单active才会改变。如示例,在about点击路由跳转到home路由,导航菜单字体颜色没有改变

What is Expected?

点击跳转回home路由的时候,home的颜色变蓝,about变回黑色

What is actually happening?

暂时的效果是点击路由导航菜单颜色没有改变

Most helpful comment

I fixed this in this fiddle... https://jsfiddle.net/galipmedia/rfg5tuy3/1/

All 3 comments

Translation of this issue:

Element UI version

1.4.6

OS/Browsers version

Window chrome 61

Vue version

2.4.4

Reproduction Link

https://jsfiddle.net/niefee/ey37a10s/

Steps to reproduce

Jump to a certain route in the navigation menu in the page, but the active option has not changed. You can only change it by clicking on the navigation menu active. For example, in about, click on the route jump to home routing, the navigation menu font color has not changed

What is Expected?

When clicked back to the home route, the color of home turns blue, and about returns to black

What is actually happening?

The temporary effect is to click the routing navigation menu without changing the color

I fixed this in this fiddle... https://jsfiddle.net/galipmedia/rfg5tuy3/1/

@gabrielboliveira thinks,This is what I want.

Was this page helpful?
0 / 5 - 0 ratings