mirror of https://github.com/ElemeFE/element
Tabs: remove focus state when before-leave return a resolved promise (#11386)
parent
5ad118b7ee
commit
15c38293d1
|
@ -77,6 +77,8 @@
|
|||
if (before && before.then) {
|
||||
before.then(() => {
|
||||
changeCurrentName();
|
||||
|
||||
this.$refs.nav && this.$refs.nav.removeFocus();
|
||||
});
|
||||
} else if (before !== false) {
|
||||
changeCurrentName();
|
||||
|
|
Loading…
Reference in New Issue