Tabs: remove focus state when before-leave return a resolved promise (#11386)

This commit is contained in:
Jikkai Xiao
2018-05-29 12:37:21 +08:00
committed by 杨奕
parent 5ad118b7ee
commit 15c38293d1

View File

@@ -77,6 +77,8 @@
if (before && before.then) {
before.then(() => {
changeCurrentName();
this.$refs.nav && this.$refs.nav.removeFocus();
});
} else if (before !== false) {
changeCurrentName();